Class: X12::Empty

Inherits:
Base
  • Object
show all
Defined in:
lib/X12/Empty.rb

Overview

$Id: Empty.rb 35 2008-11-13 18:33:44Z ikk $

Class indicating the absense of any X12 element, be it loop, segment, or anything else like that.

Instance Method Summary collapse

Constructor Details

#initializeEmpty

Create a new empty



33
34
35
# File 'lib/X12/Empty.rb', line 33

def initialize
  super(nil, [])
end

Instance Method Details

#to_sObject

Returns an empty string



38
39
40
# File 'lib/X12/Empty.rb', line 38

def to_s
  ''
end