class Devlog::Settings
Settings
- keeping it simple. Allow settings.key besides settings If the method name exists as a key within this Hash, fetch it.
Public Instance Methods
has?(m)
click to toggle source
# File lib/devlog_settings.rb, line 11 def has?(m) return key?(m) || key?(m.to_s) end
method_missing(m, *args, &block)
click to toggle source
Calls superclass method
# File lib/devlog_settings.rb, line 15 def method_missing(m, *args, &block) if key?(m) fetch m elsif key?(m.to_s) fetch m.to_s else super end end