Sha256: 265463e294702bce18f7f7c4825fc56e83ff864284b8c7921264b58cad5b8b1b

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

require 'confuse'

# Monkey patch class to easily allow a class to be configurable.
class Class
  def configurable
    extend Confuse::DSL
    include Confuse::InstanceMethods
  end

  def configured_by(config)
    configurable
    @configured_by = config
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
confuse-0.1.8 lib/confuse/configurable.rb
confuse-0.1.7 lib/confuse/configurable.rb
confuse-0.1.6 lib/confuse/configurable.rb
confuse-0.1.5 lib/confuse/configurable.rb
confuse-0.1.4 lib/confuse/configurable.rb
confuse-0.1.3 lib/confuse/configurable.rb
confuse-0.1.2 lib/confuse/configurable.rb
confuse-0.1.1 lib/confuse/configurable.rb
confuse-0.1.0 lib/confuse/configurable.rb