class TablePrint::ConfigResolver
def process_option_set(options)
def process_option_set(options) options = [options].flatten options.delete_if { |o| o == {} } # process special symbols @included_columns.concat [get_and_remove(options, :include)].flatten @included_columns.map! do |option| if option.is_a? Column option else option_to_column(option) end end @included_columns.each do |c| @column_hash[c.name] = c end # excepted columns don't need column objects since we're just going to throw them out anyway @excepted_columns.concat [get_and_remove(options, :except)].flatten # anything that isn't recognized as a special option is assumed to be a column name options.compact! @only_columns = options.collect { |name| option_to_column(name) } unless options.empty? end