lib/csv_decision/result.rb in csv_decision-0.3.1 vs lib/csv_decision/result.rb in csv_decision-0.3.2
- old
+ new
@@ -52,12 +52,12 @@
def accumulate_outs(row)
@outs.each_pair { |col, column| add_cell(column_name: column.name, cell: row[col]) }
end
# Derive the final result.
- # @return [{Symbol=>Object}]
- def final
+ # @return [Hash{Symbol=>Object}]
+ def final_result
# If there are no if: columns, then nothing needs to be filtered out of this result hash.
return @attributes if @if_columns.empty?
@multi_result ? multi_row_result : single_row_result
end
@@ -72,10 +72,10 @@
eval_outs_constants(row: row)
# Then evaluate the procs, left to right
eval_outs_procs(row: row)
- final
+ final_result
end
# Evaluate the cell proc using the partial result calculated so far.
#
# @param proc [Matchers::Pro]
\ No newline at end of file