Sha256: a268be048f23eade409ab18f2b3b0c1b42db9e5346ad44377c9a9259d0bd7f4c

Contents?: true

Size: 1.16 KB

Versions: 61

Compression:

Stored size: 1.16 KB

Contents

require 'spiderfw/config/configuration'

module Spider

    module Configurable
#        @@configuration = $configuration ? $configuration : Configuration.new

        def self.included receiver
            receiver.class_eval do
                @configuration = $configuration ? $configuration : Configuration.new
                def self.configuration_prefix(prefix)
                    @configuration.create_prefix(prefix)
                    @configuration = @configuration[prefix]
                end
                
                 # FIXME: doesn't use the prefix?
                 def self.config_option(name, description, params={})
                     Spider.configuration.config_option(name, description, params)
                 end
                 
                 def self.conf_alias(name, aliases=nil)
                     Spider.configuration.conf_alias(name, aliases)
                 end
        
                 def self.config_include_set(name)
                     @configuration.include_set(name)
                 end

             end
        end

        def config_include_set(name)
            Spider.configuration.include_set(name)
        end

    end

end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-1.0.1 lib/spiderfw/config/configurable.rb
spiderfw-1.0.0 lib/spiderfw/config/configurable.rb
spiderfw-0.6.39 lib/spiderfw/config/configurable.rb
spiderfw-0.6.38 lib/spiderfw/config/configurable.rb
spiderfw-0.6.37 lib/spiderfw/config/configurable.rb
spiderfw-0.6.35 lib/spiderfw/config/configurable.rb
spiderfw-0.6.34 lib/spiderfw/config/configurable.rb
spiderfw-0.6.33 lib/spiderfw/config/configurable.rb
spiderfw-0.6.32 lib/spiderfw/config/configurable.rb
spiderfw-0.6.31 lib/spiderfw/config/configurable.rb
spiderfw-0.6.30 lib/spiderfw/config/configurable.rb
spiderfw-0.6.29 lib/spiderfw/config/configurable.rb
spiderfw-0.6.28 lib/spiderfw/config/configurable.rb
spiderfw-0.6.27 lib/spiderfw/config/configurable.rb
spiderfw-0.6.26 lib/spiderfw/config/configurable.rb
spiderfw-0.6.26.pre1 lib/spiderfw/config/configurable.rb
spiderfw-0.6.25 lib/spiderfw/config/configurable.rb
spiderfw-0.6.24 lib/spiderfw/config/configurable.rb
spiderfw-0.6.23 lib/spiderfw/config/configurable.rb
spiderfw-0.6.22 lib/spiderfw/config/configurable.rb