Class: PhraseParser::TermClause

Inherits:
Object
  • Object
show all
Defined in:
lib/doing/phrase_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operatorObject

Returns the value of attribute operator.



52
53
54
# File 'lib/doing/phrase_parser.rb', line 52

def operator
  @operator
end

#termObject

Returns the value of attribute term.



52
53
54
# File 'lib/doing/phrase_parser.rb', line 52

def term
  @term
end