Class: Tco::Unknown

Inherits:
Object
  • Object
show all
Defined in:
lib/tco/palette.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Unknown

Returns a new instance of Unknown.



28
29
30
# File 'lib/tco/palette.rb', line 28

def initialize(id)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



26
27
28
# File 'lib/tco/palette.rb', line 26

def id
  @id
end

Instance Method Details

#to_sObject



32
33
34
# File 'lib/tco/palette.rb', line 32

def to_s
  "@#{@id}"
end