lib/csv_decision/table.rb in csv_decision-0.1.0 vs lib/csv_decision/table.rb in csv_decision-0.2.0

- old
+ new

@@ -9,16 +9,17 @@ class Table # Make a decision based off an input hash. # # @note Input hash keys may or may not be symbolized. # @param input [Hash] Input hash. - # @return [Hash{Symbol => Object, Array<Object>}] Decision hash. + # @return [{Symbol => Object, Array<Object>}] Decision hash. def decide(input) Decide.decide(table: self, input: input, symbolize_keys: true) end - # Unsafe version of decide - assumes the input hash is symbolized. + # Unsafe version of decide - may mutate the input hash and assumes the input + # hash is symbolized. # # @param input (see #decide) # @note Input hash must have its keys symbolized. # Input hash will be mutated by any functions that have side effects. # @return (see #decide) @@ -53,14 +54,9 @@ attr_accessor :outs_rows # @return [Array<CSVDecision::ScanRow>] Used to implement filtering of final results. # @api private attr_accessor :if_rows - - # @return Array<CSVDecision::Table>] pre-loaded tables passed to this decision table - # at load time. Used to allow this decision table to lookup values in other - # decision tables. (Planned feature.) - # attr_reader :tables # Iterate through all data rows of the decision table, with an optional # first and last row index given. # # @param first [Integer] Start row. \ No newline at end of file