Class: PhraseParser::PhraseClause
Overview
Represents a phrase clause
Instance Attribute Summary collapse
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#phrase ⇒ Object
Returns the value of attribute phrase.
Instance Method Summary collapse
-
#initialize(operator, phrase) ⇒ PhraseClause
constructor
A new instance of PhraseClause.
Constructor Details
#initialize(operator, phrase) ⇒ PhraseClause
Returns a new instance of PhraseClause.
69 70 71 72 |
# File 'lib/doing/phrase_parser.rb', line 69 def initialize(operator, phrase) self.operator = Operator.symbol(operator) self.phrase = phrase end |
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
67 68 69 |
# File 'lib/doing/phrase_parser.rb', line 67 def operator @operator end |
#phrase ⇒ Object
Returns the value of attribute phrase.
67 68 69 |
# File 'lib/doing/phrase_parser.rb', line 67 def phrase @phrase end |