Class: Soundcloud9000::UI::Rect
- Inherits:
-
Object
- Object
- Soundcloud9000::UI::Rect
- Defined in:
- lib/soundcloud9000/ui/rect.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y, width, height) ⇒ Rect
constructor
A new instance of Rect.
Constructor Details
#initialize(x, y, width, height) ⇒ Rect
Returns a new instance of Rect.
6 7 8 9 10 11 |
# File 'lib/soundcloud9000/ui/rect.rb', line 6 def initialize(x, y, width, height) @x = x @y = y @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
4 5 6 |
# File 'lib/soundcloud9000/ui/rect.rb', line 4 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
4 5 6 |
# File 'lib/soundcloud9000/ui/rect.rb', line 4 def width @width end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
4 5 6 |
# File 'lib/soundcloud9000/ui/rect.rb', line 4 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
4 5 6 |
# File 'lib/soundcloud9000/ui/rect.rb', line 4 def y @y end |