Class: CodeDrivenDevelopment::CodeDrivenDevelopment
- Inherits:
-
Object
- Object
- CodeDrivenDevelopment::CodeDrivenDevelopment
- Defined in:
- lib/code_driven_development/code_driven_development.rb
Instance Method Summary collapse
-
#initialize(implementation) ⇒ CodeDrivenDevelopment
constructor
A new instance of CodeDrivenDevelopment.
- #test_code ⇒ Object
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_code ⇒ Object
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 |