Module: Lutaml::Xml::XmlOrderable
- Defined in:
- lib/lutaml/xml/xml_orderable.rb
Overview
Mixin for XML element/attribute ordering state.
Included by:
- Lutaml::Xml::Serialization::InstanceMethods (Serialize instances)
- Plain model classes via add_format_specific_model_methods
Enables Lutaml::Model to check ordering capability with is_a? instead of respond_to?, following proper OOP type-checking.
Instance Attribute Summary collapse
-
#attribute_order ⇒ Object
Returns the value of attribute attribute_order.
-
#element_order ⇒ Object
Returns the value of attribute element_order.
-
#mixed ⇒ Object
Returns the value of attribute mixed.
-
#ordered ⇒ Object
Returns the value of attribute ordered.
Instance Attribute Details
#attribute_order ⇒ Object
Returns the value of attribute attribute_order.
14 15 16 |
# File 'lib/lutaml/xml/xml_orderable.rb', line 14 def attribute_order @attribute_order end |
#element_order ⇒ Object
Returns the value of attribute element_order.
14 15 16 |
# File 'lib/lutaml/xml/xml_orderable.rb', line 14 def element_order @element_order end |
#mixed ⇒ Object
Returns the value of attribute mixed.
14 15 16 |
# File 'lib/lutaml/xml/xml_orderable.rb', line 14 def mixed @mixed end |
#ordered ⇒ Object
Returns the value of attribute ordered.
14 15 16 |
# File 'lib/lutaml/xml/xml_orderable.rb', line 14 def ordered @ordered end |