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 method_missing(meth, *args, &block)
      meth_str = meth.to_s
      if /^(\w+)\=$/.match(meth_str)
        _set($1, *args, &block)
      elsif args.length > 0 || block_given?
        _add(meth, *args, &block)
      elsif /^(\w+)\?$/.match(meth_str)
        !!_get($1)
      else
        _get_or_create_namespace(meth)
      end
    end
def method_missing ( meth , * args , & block ) meth_str = meth . to_s if / ^( \w +) \= $ / . match ( meth_str ) _set ( $1 , * args , & block ) elsif args . length > 0 || block_given? _add ( meth , * args , & block ) elsif / ^( \w +) \? $ / . match ( meth_str ) ! ! _get ( $1 ) else _get_or_create_namespace ( meth ) 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 .
meth
<not_specific>
args
<not_specific>
block
<not_specific>