Class: UtteranceParser::Utterance
- Inherits:
-
Object
- Object
- UtteranceParser::Utterance
- Defined in:
- lib/utterance_parser/utterance.rb
Direct Known Subclasses
Constant Summary collapse
- TAG_RE =
/<(.+?)>(.*?)<.+?>/
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(text) ⇒ Utterance
constructor
A new instance of Utterance.
- #pos_tokens ⇒ Object
Constructor Details
#initialize(text) ⇒ Utterance
Returns a new instance of Utterance.
7 8 9 |
# File 'lib/utterance_parser/utterance.rb', line 7 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/utterance_parser/utterance.rb', line 5 def text @text end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 |
# File 'lib/utterance_parser/utterance.rb', line 11 def ==(other) other.class == self.class && other.text == @text end |