Class: Test::Right::Value
- Inherits:
-
Object
- Object
- Test::Right::Value
- Defined in:
- lib/test/right/value.rb
Instance Method Summary collapse
-
#initialize(&body) ⇒ Value
constructor
A new instance of Value.
- #value ⇒ Object
Constructor Details
#initialize(&body) ⇒ Value
Returns a new instance of Value.
4 5 6 |
# File 'lib/test/right/value.rb', line 4 def initialize(&body) @body = body end |
Instance Method Details
#value ⇒ Object
8 9 10 |
# File 'lib/test/right/value.rb', line 8 def value @body.call end |