Sha256: fc4e9132df04723cdbac6c927c576c68489bb99a7fed8e40e3c18370f9620760
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
module Visage class Config class << self def use @configuration ||= {} yield @configuration nil end def method_missing(method, *args) if method.to_s[-1,1] == '=' @configuration[method.to_s.tr('=','')] = *args else @configuration[method.to_s] end end def to_hash @configuration end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
visage-app-0.2.7 | lib/visage/config.rb |
visage-app-0.2.6 | lib/visage/config.rb |