Class: Ryb::Name

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#prettyObject (readonly)

Returns the value of attribute pretty.



3
4
5
# File 'lib/ryb/name.rb', line 3

def pretty
  @pretty
end