lib/handcuffs/configuration.rb in handcuffs-1.0.0 vs lib/handcuffs/configuration.rb in handcuffs-1.0.1

- old
+ new

@@ -1,9 +1,11 @@ +require "handcuffs/errors/configuration_block_missing_error" + module Handcuffs mattr_accessor :config def self.configure - raise 'must pass a block to Handcuffs.configure' unless block_given? + raise ConfigurationBlockMissingError unless block_given? @@config = Configurator.new yield @@config end class Configurator