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