Class: BooleanTermParser::Clause
- Defined in:
- lib/doing/boolean_term_parser.rb
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) ⇒ Clause
constructor
A new instance of Clause.
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
#operator ⇒ Object
Returns the value of attribute operator.
40 41 42 |
# File 'lib/doing/boolean_term_parser.rb', line 40 def operator @operator end |
#term ⇒ Object
Returns the value of attribute term.
40 41 42 |
# File 'lib/doing/boolean_term_parser.rb', line 40 def term @term end |