Class: SvgDocument::Image

Inherits:
Rectangle show all
Defined in:
lib/gamebox/core/svg_document.rb

Instance Attribute Summary collapse

Attributes included from HasBounds

#bounds

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods included from HasBounds

#center, #translate

Methods inherited from Base

#game_class, #game_handle, #visible?

Methods included from HasTranslation

#translation

Constructor Details

#initialize(node) ⇒ Image

Returns a new instance of Image.



156
157
158
159
# File 'lib/gamebox/core/svg_document.rb', line 156

def initialize(node)
  super(node)
  @image_name = @node.attributes["xlink:href"]
end

Instance Attribute Details

#image_nameObject (readonly)

Returns the value of attribute image_name.



154
155
156
# File 'lib/gamebox/core/svg_document.rb', line 154

def image_name
  @image_name
end