Class: CSVDecision::Columns::Dictionary Private
- Inherits:
-
Object
- Object
- CSVDecision::Columns::Dictionary
- Defined in:
- lib/csv_decision/columns.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Dictionary of all table data columns. The key of each hash is the header cell’s array column index. Note that input and output columns may be interspersed, and multiple input columns may refer to the same input hash key symbol. However, output columns must have unique symbols, which cannot overlap with input column symbols.
Instance Attribute Summary collapse
-
#columns ⇒ Hash{Integer=>Entry}
private
All column names.
-
#defaults ⇒ Hash{Integer=>Entry}
private
All defaulted input column dictionary entries.
-
#ifs ⇒ Hash{Integer=>Entry}
private
All if: column dictionary entries.
-
#ins ⇒ Hash{Integer=>Entry}
private
All input column dictionary entries.
-
#outs ⇒ Hash{Integer=>Entry}
private
All output column dictionary entries.
-
#paths ⇒ Hash{Integer=>Symbol}
private
All path columns.
Instance Method Summary collapse
-
#initialize ⇒ Dictionary
constructor
private
A new instance of Dictionary.
Constructor Details
#initialize ⇒ Dictionary
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Dictionary.
122 123 124 125 126 127 128 129 |
# File 'lib/csv_decision/columns.rb', line 122 def initialize @columns = {} @defaults = {} @ifs = {} @ins = {} @outs = {} @paths = {} end |
Instance Attribute Details
#columns ⇒ Hash{Integer=>Entry}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns All column names.
102 103 104 |
# File 'lib/csv_decision/columns.rb', line 102 def columns @columns end |
#defaults ⇒ Hash{Integer=>Entry}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns All defaulted input column dictionary entries. This is actually just a subset of :ins.
109 110 111 |
# File 'lib/csv_decision/columns.rb', line 109 def defaults @defaults end |
#ifs ⇒ Hash{Integer=>Entry}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns All if: column dictionary entries. This is actually just a subset of :outs.
116 117 118 |
# File 'lib/csv_decision/columns.rb', line 116 def ifs @ifs end |
#ins ⇒ Hash{Integer=>Entry}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns All input column dictionary entries.
105 106 107 |
# File 'lib/csv_decision/columns.rb', line 105 def ins @ins end |
#outs ⇒ Hash{Integer=>Entry}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns All output column dictionary entries.
112 113 114 |
# File 'lib/csv_decision/columns.rb', line 112 def outs @outs end |
#paths ⇒ Hash{Integer=>Symbol}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns All path columns. This is actually just a subset of :outs.
120 121 122 |
# File 'lib/csv_decision/columns.rb', line 120 def paths @paths end |