lib/csv_decision/columns.rb in csv_decision-0.0.7 vs lib/csv_decision/columns.rb in csv_decision-0.0.8

- old
+ new

@@ -28,19 +28,24 @@ # Output columns. # @return [Hash{Integer=>Entry}] All output column dictionary entries. attr_accessor :outs + # if: columns. + # @return [Hash{Integer=>Entry}] All if: column dictionary entries. + attr_accessor :ifs + # TODO: Input hash path - optional (planned feature) # attr_accessor :path # TODO: Input columns with a default value (planned feature) # attr_accessor :defaults def initialize @ins = {} @outs = {} + @ifs = {} # TODO: @path = {} # TODO: @defaults = {} end end @@ -56,9 +61,15 @@ # Output columns hash keyed by column index. # @return [Hash{Index=>Entry}] def outs @dictionary.outs + end + + # if: columns hash keyed by column index. + # @return [Hash{Index=>Entry}] + def ifs + @dictionary.ifs end # Input columns with defaults specified (planned feature) # def defaults # @dictionary.defaults \ No newline at end of file