Class: Yanagi::Result
- Inherits:
-
Struct
- Object
- Struct
- Yanagi::Result
- Defined in:
- lib/yanagi/cyrillic.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#source ⇒ Object
Returns the value of attribute source.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
8 9 10 |
# File 'lib/yanagi/cyrillic.rb', line 8 def confidence @confidence end |
#notes ⇒ Object
Returns the value of attribute notes
8 9 10 |
# File 'lib/yanagi/cyrillic.rb', line 8 def notes @notes end |
#source ⇒ Object
Returns the value of attribute source
8 9 10 |
# File 'lib/yanagi/cyrillic.rb', line 8 def source @source end |
#text ⇒ Object
Returns the value of attribute text
8 9 10 |
# File 'lib/yanagi/cyrillic.rb', line 8 def text @text end |
Instance Method Details
#==(other) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/yanagi/cyrillic.rb', line 17 def ==(other) if other.is_a?(String) text == other else super end end |
#inspect ⇒ Object
25 26 27 |
# File 'lib/yanagi/cyrillic.rb', line 25 def inspect "#<Yanagi::Result text=#{text.inspect} source=#{source.inspect} confidence=#{confidence.inspect}>" end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/yanagi/cyrillic.rb', line 9 def to_s text.to_s end |
#to_str ⇒ Object
13 14 15 |
# File 'lib/yanagi/cyrillic.rb', line 13 def to_str text.to_s end |