Class: Pry::Config::LazyValue Private
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/config/lazy_value.rb
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.
LazyValue is a Proc (block) wrapper. It is meant to be used as a configuration value. Subsequent ‘#call` calls always evaluate the given block.
Instance Method Summary collapse
- #call ⇒ Object private
-
#initialize(&block) ⇒ LazyValue
constructor
private
A new instance of LazyValue.
Constructor Details
#initialize(&block) ⇒ LazyValue
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 LazyValue.
20 21 22 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/config/lazy_value.rb', line 20 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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/config/lazy_value.rb', line 24 def call @block.call end |