Class: Ryb::Name
- Inherits:
-
String
- Object
- String
- Ryb::Name
- Defined in:
- lib/ryb/name.rb
Instance Attribute Summary collapse
-
#pretty ⇒ Object
readonly
Returns the value of attribute pretty.
Instance Method Summary collapse
-
#initialize(name, pretty) ⇒ Name
constructor
A new instance of Name.
Constructor Details
#initialize(name, pretty) ⇒ Name
Returns a new instance of Name.
4 5 6 7 |
# File 'lib/ryb/name.rb', line 4 def initialize(name, pretty) super(name) @pretty = pretty end |
Instance Attribute Details
#pretty ⇒ Object (readonly)
Returns the value of attribute pretty.
3 4 5 |
# File 'lib/ryb/name.rb', line 3 def pretty @pretty end |