Class: X12::Empty
Overview
Class indicating the absense of any X12 element, be it loop, segment, or anything else like that.
Instance Attribute Summary
Attributes inherited from Base
#composite_separator, #field_separator, #name, #next_repeat, #nodes, #parsed_str, #repeats, #segment_separator
Instance Method Summary collapse
-
#initialize ⇒ Empty
constructor
Create a new empty.
-
#to_s ⇒ String
Returns an empty string.
Methods inherited from Base
#[], #do_repeats, #dup, #find, #has_content?, #inspect, #method_missing, #repeat, #set_empty!, #show, #size, #to_a, #with
Constructor Details
#initialize ⇒ Empty
Create a new empty
5 6 7 |
# File 'lib/x12/empty.rb', line 5 def initialize super(nil, []) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class X12::Base
Instance Method Details
#to_s ⇒ String
Returns an empty string
10 11 12 |
# File 'lib/x12/empty.rb', line 10 def to_s return '' end |