Sha256: d98447d2842454437b207e7fb6fb53a7fe997a61115dbba24fc101e14ce7d4b5
Contents?: true
Size: 419 Bytes
Versions: 19
Compression:
Stored size: 419 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
19 entries across 19 versions & 1 rubygems