Class: BooleanTermParser::Clause

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator, term) ⇒ Clause

Returns a new instance of Clause.



42
43
44
45
# File 'lib/doing/boolean_term_parser.rb', line 42

def initialize(operator, term)
  self.operator = Operator.symbol(operator)
  self.term = term
end

Instance Attribute Details

#operatorObject

Returns the value of attribute operator.



40
41
42
# File 'lib/doing/boolean_term_parser.rb', line 40

def operator
  @operator
end

#termObject

Returns the value of attribute term.



40
41
42
# File 'lib/doing/boolean_term_parser.rb', line 40

def term
  @term
end