class Ni::Params::Mapper
Constants
- CONFIG_MAP
Public Class Methods
perform(args)
click to toggle source
# File lib/ni/params.rb, line 13 def self.perform(args) args.each_with_object({}) do |next_arg, acc| option = CONFIG_MAP[next_arg.class] fail 'unknown argument' unless option.present? acc[option] = next_arg end end