Class: Test::Spec::Rails::Macros::LazyValue

Inherits:
Object
  • Object
show all
Defined in:
lib/test/spec/rails/macros.rb

Overview

Stores expression to be evaluated later in the correct binding

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

Returns the value of attribute value.



18
19
20
# File 'lib/test/spec/rails/macros.rb', line 18

def value
  @value
end