Sha256: 31b9ffdb62efb4731f74ebe7e52388323a812c7f36900aa72e6c0bcfaddcc696

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

#--
#     This file is part of the X12Parser library that provides tools to
#     manipulate X12 messages using Ruby native syntax.
#
#     http://x12parser.rubyforge.org 
#     
#     Copyright (C) 2008 APP Design, Inc.
#
#     This library is free software; you can redistribute it and/or
#     modify it under the terms of the GNU Lesser General Public
#     License as published by the Free Software Foundation; either
#     version 2.1 of the License, or (at your option) any later version.
#
#     This library is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#     Lesser General Public License for more details.
#
#     You should have received a copy of the GNU Lesser General Public
#     License along with this library; if not, write to the Free Software
#     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#++
#
module X12
  
  #
  # Class indicating the absense of any X12 element, be it loop, segment, or anything else like that.
  #
  
  class Empty < Base

    # Create a new empty
    def initialize
      super(nil, [])
    end

    # Returns an empty string
    def to_s
      ''
    end

  end # Empty
end # X12

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pd_x12-1.5.4 lib/x12/empty.rb
pd_x12-1.5.3 lib/x12/empty.rb
pd_x12-1.5.2 lib/x12/empty.rb
pd_x12-1.5.1 lib/x12/empty.rb
pd_x12-1.5.0 lib/x12/empty.rb