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
2 3 4 |
# File 'lib/linner/sprite.rb', line 2 def image @image end |
#left ⇒ Object
Returns the value of attribute left
2 3 4 |
# File 'lib/linner/sprite.rb', line 2 def left @left end |
#path ⇒ Object
Returns the value of attribute path
2 3 4 |
# File 'lib/linner/sprite.rb', line 2 def path @path end |
#top ⇒ Object
Returns the value of attribute top
2 3 4 |
# File 'lib/linner/sprite.rb', line 2 def top @top end |
Instance Method Details
#height ⇒ Object
7 8 9 |
# File 'lib/linner/sprite.rb', line 7 def height image.height end |
#width ⇒ Object
3 4 5 |
# File 'lib/linner/sprite.rb', line 3 def width image.width end |