Class: Archimate::FileFormats::Sax::PreservedLangString
- Includes:
- CaptureContent
- Defined in:
- lib/archimate/file_formats/sax/preserved_lang_string.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) ⇒ PreservedLangString
constructor
A new instance of PreservedLangString.
Methods included from CaptureContent
Methods inherited from Handler
#characters, #diagram, #event, #method_missing, #process_text, #property_definitions, #respond_to_missing?
Constructor Details
#initialize(name, attrs, parent_handler) ⇒ PreservedLangString
Returns a new instance of PreservedLangString.
9 10 11 |
# File 'lib/archimate/file_formats/sax/preserved_lang_string.rb', line 9 def initialize(name, attrs, parent_handler) super 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
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/archimate/file_formats/sax/preserved_lang_string.rb', line 13 def complete doc = DataModel::PreservedLangString.string( process_text(content), @attrs["lang"] || @attrs["xml:lang"] ) [ event( :on_preserved_lang_string, doc ) ] end |