Class: PhraseParser::TermClause
Overview
Represents a term clause
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.
59 60 61 62 |
# File 'lib/doing/phrase_parser.rb', line 59 def initialize(operator, term) self.operator = Operator.symbol(operator) self.term = term end |