Class: Soundcloud9000::UI::Rect

Inherits:
Object
  • Object
show all
Defined in:
lib/soundcloud9000/ui/rect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject (readonly)

Returns the value of attribute height.



4
5
6
# File 'lib/soundcloud9000/ui/rect.rb', line 4

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



4
5
6
# File 'lib/soundcloud9000/ui/rect.rb', line 4

def width
  @width
end

#xObject (readonly)

Returns the value of attribute x.



4
5
6
# File 'lib/soundcloud9000/ui/rect.rb', line 4

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



4
5
6
# File 'lib/soundcloud9000/ui/rect.rb', line 4

def y
  @y
end