Document LazyObject.
This commit is contained in:
parent
319a288198
commit
62c2ee332f
@ -1,5 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# An object which lazily evaluates its inner block only once a method is called on it.
|
||||
#
|
||||
# @api private
|
||||
class LazyObject < Delegator
|
||||
def initialize(&callable)
|
||||
super(callable)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user