Class: PhraseParser::TermClause
- Inherits:
-
Object
- Object
- PhraseParser::TermClause
- Defined in:
- lib/doing/phrase_parser.rb
Instance Attribute Summary collapse
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#term ⇒ Object
Returns the value of attribute term.
Instance Method Summary collapse
-
#initialize(operator, term) ⇒ TermClause
constructor
A new instance of TermClause.
Constructor Details
#initialize(operator, term) ⇒ TermClause
Returns a new instance of TermClause.
54 55 56 57 |
# File 'lib/doing/phrase_parser.rb', line 54 def initialize(operator, term) self.operator = Operator.symbol(operator) self.term = term end |
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
52 53 54 |
# File 'lib/doing/phrase_parser.rb', line 52 def operator @operator end |
#term ⇒ Object
Returns the value of attribute term.
52 53 54 |
# File 'lib/doing/phrase_parser.rb', line 52 def term @term end |