Class: PhraseParser::PhraseClause

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

Overview

Phrase

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operatorObject

Returns the value of attribute operator.



62
63
64
# File 'lib/doing/phrase_parser.rb', line 62

def operator
  @operator
end

#phraseObject

Returns the value of attribute phrase.



62
63
64
# File 'lib/doing/phrase_parser.rb', line 62

def phrase
  @phrase
end