Document LazyObject.

This commit is contained in:
Markus Reiter 2020-08-09 03:14:44 +02:00
parent 319a288198
commit 62c2ee332f

View File

@ -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)