Class: ApacheCrunch::DerivationRule
- Inherits:
-
Object
- Object
- ApacheCrunch::DerivationRule
- Defined in:
- lib/derivation.rb
Overview
Abstract for classes that define how to obtain a given element from the value of another.
Direct Known Subclasses
Instance Method Summary collapse
-
#derive(name, source_value) ⇒ Object
Derives the given derivable element from the given element value.
-
#source_name ⇒ Object
Returns the name of the element from which this rule derives values.
Instance Method Details
#derive(name, source_value) ⇒ Object
Derives the given derivable element from the given element value
10 11 12 |
# File 'lib/derivation.rb', line 10 def derive(name, source_value) raise NotImplementedError end |
#source_name ⇒ Object
Returns the name of the element from which this rule derives values
5 6 7 |
# File 'lib/derivation.rb', line 5 def source_name raise NotImplementedError end |