Class: Tone
- Inherits:
-
Object
- Object
- Tone
- Defined in:
- lib/tone.rb
Instance Attribute Summary collapse
-
#blue ⇒ Object
Returns the value of attribute blue.
-
#gray ⇒ Object
Returns the value of attribute gray.
-
#green ⇒ Object
Returns the value of attribute green.
-
#red ⇒ Object
Returns the value of attribute red.
Instance Method Summary collapse
-
#initialize(red = 0, green = 0, blue = 0, gray = 0) ⇒ Tone
constructor
A new instance of Tone.
- #set(arg1, green = nil, blue = nil, gray = nil) ⇒ Object
Constructor Details
#initialize(red = 0, green = 0, blue = 0, gray = 0) ⇒ Tone
Returns a new instance of Tone.
3 4 5 |
# File 'lib/tone.rb', line 3 def initialize(red = 0, green = 0, blue = 0, gray = 0) fail NotImplementedError end |
Instance Attribute Details
#blue ⇒ Object
Returns the value of attribute blue.
15 16 17 |
# File 'lib/tone.rb', line 15 def blue @blue end |
#gray ⇒ Object
Returns the value of attribute gray.
17 18 19 |
# File 'lib/tone.rb', line 17 def gray @gray end |
#green ⇒ Object
Returns the value of attribute green.
13 14 15 |
# File 'lib/tone.rb', line 13 def green @green end |
#red ⇒ Object
Returns the value of attribute red.
11 12 13 |
# File 'lib/tone.rb', line 11 def red @red end |
Instance Method Details
#set(arg1, green = nil, blue = nil, gray = nil) ⇒ Object
7 8 9 |
# File 'lib/tone.rb', line 7 def set(arg1, green = nil, blue = nil, gray = nil) fail NotImplementedError end |