class Visage::Config
Public Class Methods
method_missing(method, *args)
click to toggle source
# File lib/visage-app/config.rb, line 10 def method_missing(method, *args) if method.to_s[-1,1] == '=' @configuration[method.to_s.tr('=','')] = *args else @configuration[method.to_s] end end
to_hash()
click to toggle source
# File lib/visage-app/config.rb, line 18 def to_hash @configuration end
use() { |configuration| ... }
click to toggle source
# File lib/visage-app/config.rb, line 4 def use @configuration ||= {} yield @configuration nil end