Class: CodeDrivenDevelopment::CodeDrivenDevelopment

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

Instance Method Summary collapse

Constructor Details

#initialize(implementation) ⇒ CodeDrivenDevelopment

Returns a new instance of CodeDrivenDevelopment.



3
4
5
# File 'lib/code_driven_development/code_driven_development.rb', line 3

def initialize(implementation)
  @implementation = implementation
end

Instance Method Details

#test_codeObject



7
8
9
10
11
# File 'lib/code_driven_development/code_driven_development.rb', line 7

def test_code
  test_context = TestComponent::BlankSlate.new
  ruleset.test_for(parse_tree, test_context)
  test_context.indented_output
end