Parent

Netzke::Core::OptionsHash

Allows deep-nested configuration without previously defining the hash tree:

config = Netzke::Core::OptionsHash.new
config.basepack.grid_panel.add_form.with_tools = true
config
=> {:basepack=>{:grid_panel=>{:add_form=>{:with_tools=>true}}}}

Public Instance Methods

[](key) click to toggle source
# File lib/netzke/core/options_hash.rb, line 14
def [](key)
  super(key.to_sym)
end
[]=(key, value) click to toggle source
# File lib/netzke/core/options_hash.rb, line 10
def []=(key, value)
  super(key.to_sym, value)
end
method_missing(name, *args) click to toggle source
# File lib/netzke/core/options_hash.rb, line 18
def method_missing(name, *args)
  if name.to_s =~ /(.*)=$/
    self[$1.to_sym] = args.first
  else
    self.has_key?(name) ? self[name] : self[name] = OptionsHash.new
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.