Class: Fuzz::Screen::Color
- Inherits:
-
Object
- Object
- Fuzz::Screen::Color
- Defined in:
- lib/fuzz/screen.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Color
constructor
A new instance of Color.
- #to_s ⇒ Object (also: #to_str)
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
#code ⇒ Object (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_s ⇒ Object Also known as: to_str
20 21 22 |
# File 'lib/fuzz/screen.rb', line 20 def to_s '' end |