# File lib/dragonfly/register.rb, line 13 def add(name, item=nil, &block) items[name.to_sym] = item || block || raise(ArgumentError, "you must give either an argument or a block") end