Class: Tone

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blueObject

Returns the value of attribute blue.



15
16
17
# File 'lib/tone.rb', line 15

def blue
  @blue
end

#grayObject

Returns the value of attribute gray.



17
18
19
# File 'lib/tone.rb', line 17

def gray
  @gray
end

#greenObject

Returns the value of attribute green.



13
14
15
# File 'lib/tone.rb', line 13

def green
  @green
end

#redObject

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