Class: Archimate::FileFormats::Sax::Archi::Relationship
- Includes:
- CaptureDocumentation, CaptureProperties
- Defined in:
- lib/archimate/file_formats/sax/archi/relationship.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) ⇒ Relationship
constructor
A new instance of Relationship.
Methods included from CaptureProperties
Methods included from CaptureDocumentation
#documentation, #on_preserved_lang_string
Methods inherited from Handler
#characters, #diagram, #event, #method_missing, #process_text, #property_definitions, #respond_to_missing?
Constructor Details
#initialize(name, attrs, parent_handler) ⇒ Relationship
Returns a new instance of Relationship.
11 12 13 14 |
# File 'lib/archimate/file_formats/sax/archi/relationship.rb', line 11 def initialize(name, attrs, parent_handler) super @relationship = nil 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
16 17 18 19 20 21 22 23 |
# File 'lib/archimate/file_formats/sax/archi/relationship.rb', line 16 def complete [ event(:on_relationship, relationship), event(:on_referenceable, relationship), event(:on_future, Sax::FutureReference.new(relationship, :source, @attrs["source"])), event(:on_future, Sax::FutureReference.new(relationship, :target, @attrs["target"])) ] end |