module Ramverk::Configuration::DynamicGroups
Module for creating configuration items on the fly.
Public Instance Methods
freeze()
click to toggle source
@private
Calls superclass method
# File lib/ramverk/configuration/dynamic_groups.rb, line 25 def freeze dynamic_groups.freeze dynamic_groups.each_value(&:freeze) super end
method_missing(meth, *args, &block)
click to toggle source
@private
Calls superclass method
# File lib/ramverk/configuration/dynamic_groups.rb, line 8 def method_missing(meth, *args, &block) return super unless meth.to_s.end_with?("=") key = meth.to_s.sub("=", "") dynamic_groups[key] = args.first define_singleton_method(key) { dynamic_groups[key] } end
respond_to_missing?(name, include_private = false)
click to toggle source
@private :nocov:
Calls superclass method
# File lib/ramverk/configuration/dynamic_groups.rb, line 19 def respond_to_missing?(name, include_private = false) super end
Private Instance Methods
dynamic_groups()
click to toggle source
@private
# File lib/ramverk/configuration/dynamic_groups.rb, line 35 def dynamic_groups @dynamic_groups ||= {} end