Class: Test::Right::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/test/right/value.rb

Instance Method Summary collapse

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

#valueObject



8
9
10
# File 'lib/test/right/value.rb', line 8

def value
  @body.call
end