Class: X12::Empty

Inherits:
Base
  • Object
show all
Defined in:
lib/x12/empty.rb

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

Methods inherited from Base

#[], #do_repeats, #dup, #find, #has_content?, #inspect, #method_missing, #repeat, #set_empty!, #show, #size, #to_a, #with

Constructor Details

#initializeEmpty

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_sString

Returns an empty string

Returns:

  • (String)


10
11
12
# File 'lib/x12/empty.rb', line 10

def to_s
  return ''
end