Class: Pry::Config::Lazy Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Wraps a block so it can have a name.
Instance Method Summary collapse
- #call ⇒ Object private
-
#initialize(&block) ⇒ Lazy
constructor
private
A new instance of Lazy.
Constructor Details
#initialize(&block) ⇒ Lazy
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Lazy.
19 20 21 |
# File 'lib/pry/config.rb', line 19 def initialize(&block) @block = block end |
Instance Method Details
#call ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/pry/config.rb', line 24 def call @block.call end |