Class: Fuzz::Screen::Color

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzz/screen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ Color

Returns a new instance of Color.



16
17
18
# File 'lib/fuzz/screen.rb', line 16

def initialize(code)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



19
20
21
# File 'lib/fuzz/screen.rb', line 19

def code
  @code
end

Instance Method Details

#to_sObject Also known as: to_str



20
21
22
# File 'lib/fuzz/screen.rb', line 20

def to_s
  ''
end