Class: Test::Spec::Rails::Macros::LazyValue
- Inherits:
-
Object
- Object
- Test::Spec::Rails::Macros::LazyValue
- Defined in:
- lib/test/spec/rails/macros.rb
Overview
Stores expression to be evaluated later in the correct binding
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ LazyValue
constructor
A new instance of LazyValue.
Constructor Details
#initialize(value) ⇒ LazyValue
Returns a new instance of LazyValue.
19 20 21 |
# File 'lib/test/spec/rails/macros.rb', line 19 def initialize(value) self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
18 19 20 |
# File 'lib/test/spec/rails/macros.rb', line 18 def value @value end |