Class: SvgDocument::Rectangle

Inherits:
Base show all
Includes:
HasBounds
Defined in:
lib/gamebox/core/svg_document.rb

Direct Known Subclasses

Image

Instance Attribute Summary

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) ⇒ Rectangle

Returns a new instance of Rectangle.



147
148
149
150
# File 'lib/gamebox/core/svg_document.rb', line 147

def initialize(node)
  super node
  set_bounds_from_attributes
end