Class: Faker::Japanese::Kanji
- Inherits:
-
String
- Object
- String
- Faker::Japanese::Kanji
- Defined in:
- lib/faker_japanese.rb
Instance Attribute Summary collapse
-
#kana ⇒ Object
readonly
Returns the value of attribute kana.
-
#romaji ⇒ Object
readonly
Returns the value of attribute romaji.
-
#yomi ⇒ Object
readonly
Returns the value of attribute yomi.
Instance Method Summary collapse
-
#initialize(kanji, yomi, kana, romaji) ⇒ Kanji
constructor
A new instance of Kanji.
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
#kana ⇒ Object (readonly)
Returns the value of attribute kana.
8 9 10 |
# File 'lib/faker_japanese.rb', line 8 def kana @kana end |
#romaji ⇒ Object (readonly)
Returns the value of attribute romaji.
8 9 10 |
# File 'lib/faker_japanese.rb', line 8 def romaji @romaji end |
#yomi ⇒ Object (readonly)
Returns the value of attribute yomi.
8 9 10 |
# File 'lib/faker_japanese.rb', line 8 def yomi @yomi end |