Class: Linner::ImageProxy

Inherits:
Struct
  • Object
show all
Defined in:
lib/linner/sprite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#imageObject

Returns the value of attribute image

Returns:

  • (Object)

    the current value of image



4
5
6
# File 'lib/linner/sprite.rb', line 4

def image
  @image
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



4
5
6
# File 'lib/linner/sprite.rb', line 4

def left
  @left
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



4
5
6
# File 'lib/linner/sprite.rb', line 4

def path
  @path
end

#topObject

Returns the value of attribute top

Returns:

  • (Object)

    the current value of top



4
5
6
# File 'lib/linner/sprite.rb', line 4

def top
  @top
end

Instance Method Details

#heightObject



9
10
11
# File 'lib/linner/sprite.rb', line 9

def height
  image.height
end

#widthObject



5
6
7
# File 'lib/linner/sprite.rb', line 5

def width
  image.width
end