Class: Archimate::FileFormats::Sax::Archi::Bounds
- Defined in:
- lib/archimate/file_formats/sax/archi/bounds.rb
Instance Attribute Summary
Attributes inherited from Handler
#attrs, #element_type, #name, #parent_handler
Instance Method Summary collapse
- #complete ⇒ Object
-
#initialize(name, attrs, parent_handler) ⇒ Bounds
constructor
A new instance of Bounds.
Methods inherited from Handler
#characters, #diagram, #event, #method_missing, #process_text, #property_definitions, #respond_to_missing?
Constructor Details
#initialize(name, attrs, parent_handler) ⇒ Bounds
Returns a new instance of Bounds.
8 9 10 11 12 13 14 15 16 |
# File 'lib/archimate/file_formats/sax/archi/bounds.rb', line 8 def initialize(name, attrs, parent_handler) super @bounds = DataModel::Bounds.new( x: @attrs["x"], y: @attrs["y"], width: @attrs["width"], height: @attrs["height"] ) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Archimate::FileFormats::Sax::Handler
Instance Method Details
#complete ⇒ Object
18 19 20 |
# File 'lib/archimate/file_formats/sax/archi/bounds.rb', line 18 def complete [event(:on_bounds, @bounds)] end |