Sha256: 3378cc86e21a6ea022defed2fea79c0b595e3083611f207330f83c73f2880079

Contents?: true

Size: 1.43 KB

Versions: 8

Compression:

Stored size: 1.43 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
  
  #
  # This just a named hash to store validation tables.
  #
  
  class Table < Hash
    attr_reader :name

    # Create a new table with given name and hash content.
    def initialize(name, name_values)
      @name = name       
      self.merge!(name_values)
    end

    # Return a printable string representing this table
    def inspect
      "Table #{name} -- #{super.inspect}"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
gm_x12-1.6.2 lib/x12/table.rb
gm_x12-1.6.1 lib/x12/table.rb
gm_x12-1.6.0 lib/x12/table.rb
pd_x12-1.5.4 lib/x12/table.rb
pd_x12-1.5.3 lib/x12/table.rb
pd_x12-1.5.2 lib/x12/table.rb
pd_x12-1.5.1 lib/x12/table.rb
pd_x12-1.5.0 lib/x12/table.rb