Class: ApacheCrunch::Element
- Inherits:
-
Object
- Object
- ApacheCrunch::Element
- Defined in:
- lib/element.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/element.rb', line 3 def token @token end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/element.rb', line 3 def value @value end |
Instance Method Details
#derivation_rule ⇒ Object
12 13 14 |
# File 'lib/element.rb', line 12 def derivation_rule @token.derivation_rule end |
#name ⇒ Object
10 |
# File 'lib/element.rb', line 10 def name; @token.name; end |
#populate!(token, value) ⇒ Object
5 6 7 8 |
# File 'lib/element.rb', line 5 def populate!(token, value) @token = token @value = value end |