Document LazyObject.
This commit is contained in:
parent
319a288198
commit
62c2ee332f
@ -1,5 +1,8 @@
|
|||||||
# frozen_string_literal: true
|
# 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
|
class LazyObject < Delegator
|
||||||
def initialize(&callable)
|
def initialize(&callable)
|
||||||
super(callable)
|
super(callable)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user