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 define(&block)
      case block.arity
      when 0 then instance_eval(&block)
      when 1 then block.call(self)
      else   raise ConfigError, 'invalid config block arity'
      end
    end
def define ( & block ) case block . arity when 0 then instance_eval ( & block ) when 1 then block . call ( self ) else raise ConfigError , 'invalid config block arity' 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 .
block
<not_specific>