Module: HL7::Message::SegmentListStorage
- Included in:
- Segment
- Defined in:
- lib/segment_list_storage.rb
Overview
This module includes methods for storing segments inside segments. has_children(child_types) defines three methods dynamically.
Instance Attribute Summary collapse
-
#child_types ⇒ Object
readonly
Returns the value of attribute child_types.
Instance Method Summary collapse
Instance Attribute Details
#child_types ⇒ Object (readonly)
Returns the value of attribute child_types.
7 8 9 |
# File 'lib/segment_list_storage.rb', line 7 def child_types @child_types end |
Instance Method Details
#add_child_type(child_type) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/segment_list_storage.rb', line 9 def add_child_type(child_type) if defined?(@child_types) @child_types << child_type.to_sym else has_children [child_type.to_sym] end end |