Class: Faker::Japanese::Kanji

Inherits:
String
  • Object
show all
Defined in:
lib/faker_japanese.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kanji, yomi, kana, romaji) ⇒ Kanji

Returns a new instance of Kanji.



10
11
12
13
14
15
# File 'lib/faker_japanese.rb', line 10

def initialize(kanji, yomi, kana, romaji)
	super(kanji)
	@yomi = yomi
	@kana = kana
	@romaji = romaji
end

Instance Attribute Details

#kanaObject (readonly)

Returns the value of attribute kana.



8
9
10
# File 'lib/faker_japanese.rb', line 8

def kana
  @kana
end

#romajiObject (readonly)

Returns the value of attribute romaji.



8
9
10
# File 'lib/faker_japanese.rb', line 8

def romaji
  @romaji
end

#yomiObject (readonly)

Returns the value of attribute yomi.



8
9
10
# File 'lib/faker_japanese.rb', line 8

def yomi
  @yomi
end