Class: CodeDrivenDevelopment::TestComponent::Let

Inherits:
Object
  • Object
show all
Defined in:
lib/code_driven_development/test_component/let.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Let

Returns a new instance of Let.



4
5
6
# File 'lib/code_driven_development/test_component/let.rb', line 4

def initialize(name, value)
  @name, @value = name, value
end

Instance Method Details

#indented_output(io) ⇒ Object



8
9
10
# File 'lib/code_driven_development/test_component/let.rb', line 8

def indented_output(io)
  io << "let(:#@name) { #@value }"
end