class Rivet::ConfigProxy
Public Class Methods
new(config)
click to toggle source
# File lib/rivet/common/config_proxy.rb, line 6 def initialize(config) @config = config end
Public Instance Methods
method_missing(m, *args, &block)
click to toggle source
Calls superclass method
# File lib/rivet/common/config_proxy.rb, line 18 def method_missing(m, *args, &block) if @config.respond_to?("normalize_#{m}".to_sym) @config.send("normalize_#{m}".to_sym) elsif @config.respond_to? m @config.send(m, *args, &block) else super end end
send(m, *args)
click to toggle source
Calls superclass method
# File lib/rivet/common/config_proxy.rb, line 10 def send(m, *args) if @config.respond_to?("normalize_#{m}".to_sym) @config.send("normalize_#{m}".to_sym) else super end end