Class: SvgDocument::Image
- Defined in:
- lib/gamebox/core/svg_document.rb
Instance Attribute Summary collapse
-
#image_name ⇒ Object
readonly
Returns the value of attribute image_name.
Attributes included from HasBounds
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node) ⇒ Image
constructor
A new instance of Image.
Methods included from HasBounds
Methods inherited from Base
#game_class, #game_handle, #visible?
Methods included from HasTranslation
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_name ⇒ Object (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 |