lib/announcer/config.rb
# Putting this here instead of in Errors because I may move this into a
# separate gem.
Putting this here instead of in Errors because I may move this into a
separate gem.
Putting this here instead of in Errors because I may move this into a separate gem .
def _args_to_object(*args, &block)
      if args.length == 1
        args.first
      elsif args.length > 1
        args
      elsif block_given?
        block
      else
        raise ConfigError, 'must pass value or block'
      end
    end
def _args_to_object ( * args , & block ) if args . length == 1 args . first elsif args . length > 1 args elsif block_given? block else raise ConfigError , 'must pass value or block' end end
Putting this here instead of in Errors because I may move this into a
separate gem.
Putting this here instead of in Errors because I may move this into a separate gem .
args
<not_specific>
block
<not_specific>