Class: CodeDrivenDevelopment::Rule::AbstractRule
- Inherits:
-
Object
- Object
- CodeDrivenDevelopment::Rule::AbstractRule
show all
- Defined in:
- lib/code_driven_development/rule/abstract_rule.rb
Instance Method Summary
collapse
Constructor Details
#initialize(code, ruleset, test_context) ⇒ AbstractRule
Returns a new instance of AbstractRule.
4
5
6
7
8
|
# File 'lib/code_driven_development/rule/abstract_rule.rb', line 4
def initialize(code, ruleset, test_context)
@code = code
@ruleset = ruleset
@test_context = test_context
end
|
Instance Method Details
#capable? ⇒ Boolean
10
11
12
|
# File 'lib/code_driven_development/rule/abstract_rule.rb', line 10
def capable?
raise NotImplementedError.new("#{self.class} doesn't yet implement capable?!")
end
|
#test ⇒ Object
14
15
16
|
# File 'lib/code_driven_development/rule/abstract_rule.rb', line 14
def test
raise NotImplementedError.new("#{self.class} doesn't yet implement test!")
end
|