class Embulk::Column
def initialize(*args)
def initialize(*args) if args.length == 1 && args[0].is_a?(Hash) # initialize(hash) hash = args.first super(hash[:index], hash[:name], hash[:type], hash[:format]) else # initialize(index, name, type, format) super(*args) end end