Class: PhraseParser::TermClause

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

Overview

Represents a term clause

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#operatorObject

Returns the value of attribute operator.



57
58
59
# File 'lib/doing/phrase_parser.rb', line 57

def operator
  @operator
end

#termObject

Returns the value of attribute term.



57
58
59
# File 'lib/doing/phrase_parser.rb', line 57

def term
  @term
end