class AppConfig::Storage::Base
Public Class Methods
new()
click to toggle source
# File lib/app_config/storage/base.rb, line 5 def initialize @data = Storage::ConfigData.new end
Public Instance Methods
method_missing(name, *args)
click to toggle source
Wrap `method_missing` to proxy to `@data`.
# File lib/app_config/storage/base.rb, line 14 def method_missing(name, *args) unless @data.nil? if name =~ /.+=$/ # Caller is a setter. @data.send(name.to_sym, *args[0]) else @data.send(name.to_sym) end end end
to_hash()
click to toggle source
# File lib/app_config/storage/base.rb, line 9 def to_hash defined?(@data) ? @data.to_hash : Hash.new end