Class: KanjiMaster::Text
- Inherits:
-
Object
- Object
- KanjiMaster::Text
- Defined in:
- lib/kanji_master/text.rb
Instance Attribute Summary collapse
-
#alphabets ⇒ Object
Returns the value of attribute alphabets.
-
#full_text ⇒ Object
Returns the value of attribute full_text.
-
#kanjis ⇒ Object
Returns the value of attribute kanjis.
-
#numbers ⇒ Object
Returns the value of attribute numbers.
-
#text_analyse ⇒ Object
Returns the value of attribute text_analyse.
Instance Method Summary collapse
-
#initialize(text_analyse) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(text_analyse) ⇒ Text
Returns a new instance of Text.
5 6 7 8 9 10 11 |
# File 'lib/kanji_master/text.rb', line 5 def initialize(text_analyse) @text_analyse = text_analyse @full_text = text_analyse[:full_text] @kanjis = text_analyse[:kanjis] @numbers = text_analyse[:numbers] @alphabets = text_analyse[:alphabets] end |
Instance Attribute Details
#alphabets ⇒ Object
Returns the value of attribute alphabets.
3 4 5 |
# File 'lib/kanji_master/text.rb', line 3 def alphabets @alphabets end |
#full_text ⇒ Object
Returns the value of attribute full_text.
3 4 5 |
# File 'lib/kanji_master/text.rb', line 3 def full_text @full_text end |
#kanjis ⇒ Object
Returns the value of attribute kanjis.
3 4 5 |
# File 'lib/kanji_master/text.rb', line 3 def kanjis @kanjis end |
#numbers ⇒ Object
Returns the value of attribute numbers.
3 4 5 |
# File 'lib/kanji_master/text.rb', line 3 def numbers @numbers end |
#text_analyse ⇒ Object
Returns the value of attribute text_analyse.
3 4 5 |
# File 'lib/kanji_master/text.rb', line 3 def text_analyse @text_analyse end |