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 data columns. The key of each hash is the header cell’s array column index. Note that input and output columns can be interspersed and need not have unique names.
Instance Attribute Summary collapse
-
#columns ⇒ Hash{Integer=>Entry}
private
All column names.
-
#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.
Instance Method Summary collapse
-
#initialize ⇒ Dictionary
constructor
private
TODO: Input columns with a default value (planned feature) attr_accessor :defaults.
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.
TODO: Input columns with a default value (planned feature) attr_accessor :defaults
36 37 38 39 40 41 42 43 |
# File 'lib/csv_decision/columns.rb', line 36 def initialize @columns = {} @ifs = {} @ins = {} @outs = {} # TODO: @path = {} # TODO: @defaults = {} 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.
19 20 21 |
# File 'lib/csv_decision/columns.rb', line 19 def columns @columns 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.
28 29 30 |
# File 'lib/csv_decision/columns.rb', line 28 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.
22 23 24 |
# File 'lib/csv_decision/columns.rb', line 22 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.
25 26 27 |
# File 'lib/csv_decision/columns.rb', line 25 def outs @outs end |