module Canis::ConfigSetup
Public Instance Methods
config_setup(aconfig)
click to toggle source
# File lib/canis/core/widgets/rwidget.rb, line 1060 def config_setup aconfig @config = aconfig # this creates a problem in 1.9.2 since variable_set sets @config 2010-08-22 19:05 RK #@config.each_pair { |k,v| variable_set(k,v) } keys = @config.keys keys.each do |e| variable_set(e, @config[e]) end end
variable_set(var, val)
click to toggle source
private options passed in the constructor call the relevant methods declared in dsl_accessor or dsl_property
# File lib/canis/core/widgets/rwidget.rb, line 1057 def variable_set var, val send("#{var}", val) #rescue send("#{var}=", val) end