Class: Dare::Color
- Inherits:
-
Object
- Object
- Dare::Color
- Defined in:
- lib/dare/window.rb
Instance Attribute Summary collapse
-
#blue ⇒ Object
Returns the value of attribute blue.
-
#green ⇒ Object
Returns the value of attribute green.
-
#red ⇒ Object
Returns the value of attribute red.
Instance Method Summary collapse
-
#initialize(color) ⇒ Color
constructor
A new instance of Color.
Constructor Details
#initialize(color) ⇒ Color
Returns a new instance of Color.
4 5 6 |
# File 'lib/dare/window.rb', line 4 def initialize(color) end |
Instance Attribute Details
#blue ⇒ Object
Returns the value of attribute blue.
3 4 5 |
# File 'lib/dare/window.rb', line 3 def blue @blue end |
#green ⇒ Object
Returns the value of attribute green.
3 4 5 |
# File 'lib/dare/window.rb', line 3 def green @green end |
#red ⇒ Object
Returns the value of attribute red.
3 4 5 |
# File 'lib/dare/window.rb', line 3 def red @red end |