Class: PhraseParser::PhraseClause

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

Overview

Represents a phrase clause

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operatorObject

Returns the value of attribute operator.



67
68
69
# File 'lib/doing/phrase_parser.rb', line 67

def operator
  @operator
end

#phraseObject

Returns the value of attribute phrase.



67
68
69
# File 'lib/doing/phrase_parser.rb', line 67

def phrase
  @phrase
end