Class: KanjiMaster::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/kanji_master/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#alphabetsObject

Returns the value of attribute alphabets.



3
4
5
# File 'lib/kanji_master/text.rb', line 3

def alphabets
  @alphabets
end

#full_textObject

Returns the value of attribute full_text.



3
4
5
# File 'lib/kanji_master/text.rb', line 3

def full_text
  @full_text
end

#kanjisObject

Returns the value of attribute kanjis.



3
4
5
# File 'lib/kanji_master/text.rb', line 3

def kanjis
  @kanjis
end

#numbersObject

Returns the value of attribute numbers.



3
4
5
# File 'lib/kanji_master/text.rb', line 3

def numbers
  @numbers
end

#text_analyseObject

Returns the value of attribute text_analyse.



3
4
5
# File 'lib/kanji_master/text.rb', line 3

def text_analyse
  @text_analyse
end