Class: ChineseName
- Inherits:
-
Object
- Object
- ChineseName
- Defined in:
- lib/chinese_name.rb,
lib/chinese_name/version.rb
Constant Summary collapse
- LAST_NAME_DATA =
'last_name.dat'.freeze
- VERSION =
"0.1.2"
Instance Attribute Summary collapse
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#full_name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute full_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
Class Method Summary collapse
- .generate ⇒ Object (also: g)
Instance Method Summary collapse
-
#initialize ⇒ ChineseName
constructor
A new instance of ChineseName.
Constructor Details
#initialize ⇒ ChineseName
Returns a new instance of ChineseName.
15 16 17 18 |
# File 'lib/chinese_name.rb', line 15 def initialize full_name self end |
Instance Attribute Details
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
6 7 8 |
# File 'lib/chinese_name.rb', line 6 def first_name @first_name end |
#full_name ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute full_name.
6 7 8 |
# File 'lib/chinese_name.rb', line 6 def full_name @full_name end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
6 7 8 |
# File 'lib/chinese_name.rb', line 6 def last_name @last_name end |
Class Method Details
.generate ⇒ Object Also known as: g
9 10 11 |
# File 'lib/chinese_name.rb', line 9 def generate new end |