Class: PhraseParser::TermClause
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 |