Class: X12::Table
- Inherits:
-
Hash
- Object
- Hash
- X12::Table
- Defined in:
- lib/x12/table.rb
Overview
This just a named hash to store validation tables.
Instance Attribute Summary collapse
- #name ⇒ String readonly
Instance Method Summary collapse
-
#initialize(name, name_values) ⇒ void
constructor
Create a new table with given name and hash content.
-
#inspect ⇒ String
Return a printable string representing this table.
Constructor Details
#initialize(name, name_values) ⇒ void
Create a new table with given name and hash content.
10 11 12 13 |
# File 'lib/x12/table.rb', line 10 def initialize(name, name_values) @name = name self.merge!(name_values) end |
Instance Attribute Details
#name ⇒ String (readonly)
6 7 8 |
# File 'lib/x12/table.rb', line 6 def name @name end |
Instance Method Details
#inspect ⇒ String
Return a printable string representing this table
17 18 19 |
# File 'lib/x12/table.rb', line 17 def inspect "Table #{name} -- #{super.inspect}" end |