Class: PhraseParser::PhraseClause
Overview
Phrase
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.
64 65 66 67 |
# File 'lib/doing/phrase_parser.rb', line 64 def initialize(operator, phrase) self.operator = Operator.symbol(operator) self.phrase = phrase end |
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
62 63 64 |
# File 'lib/doing/phrase_parser.rb', line 62 def operator @operator end |
#phrase ⇒ Object
Returns the value of attribute phrase.
62 63 64 |
# File 'lib/doing/phrase_parser.rb', line 62 def phrase @phrase end |