class Raconteur::Setting
Public Class Methods
all()
click to toggle source
return hash of all settings
# File lib/raconteur/setting.rb, line 10 def self.all @@raconteur.send(:data)[:settings] end
inspect()
click to toggle source
print hash
# File lib/raconteur/setting.rb, line 37 def self.inspect "#{all} (Raconteur::Setting hash)" end
method_missing(method_sym, *arguments, &block)
click to toggle source
treat class as hash
# File lib/raconteur/setting.rb, line 42 def self.method_missing(method_sym, *arguments, &block) if !arguments.empty? && block_given? all.send(method_sym, *arguments, &block) elsif !arguments.empty? all.send(method_sym, *arguments) elsif block_given? all.send(method_sym, &block) else all.send(method_sym) end end
revert_to_defaults!()
click to toggle source
revert_to_original_defaults!()
click to toggle source
scoped(raconteur)
click to toggle source
scoped
# File lib/raconteur/setting.rb, line 4 def self.scoped(raconteur) @@raconteur = raconteur self end