Class: Linner::ImageProxy
- Inherits:
-
Struct
- Object
- Struct
- Linner::ImageProxy
- Defined in:
- lib/linner/sprite.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
Returns the value of attribute image.
-
#left ⇒ Object
Returns the value of attribute left.
-
#path ⇒ Object
Returns the value of attribute path.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
Instance Attribute Details
#image ⇒ Object
Returns the value of attribute image
4 5 6 |
# File 'lib/linner/sprite.rb', line 4 def image @image end |
#left ⇒ Object
Returns the value of attribute left
4 5 6 |
# File 'lib/linner/sprite.rb', line 4 def left @left end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/linner/sprite.rb', line 4 def path @path end |
#top ⇒ Object
Returns the value of attribute top
4 5 6 |
# File 'lib/linner/sprite.rb', line 4 def top @top end |
Instance Method Details
#height ⇒ Object
9 10 11 |
# File 'lib/linner/sprite.rb', line 9 def height image.height end |
#width ⇒ Object
5 6 7 |
# File 'lib/linner/sprite.rb', line 5 def width image.width end |