Sha256: 6d27883de909ef135519e9a46815f404a88567b4399804b84a66df1713381b9d
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
require "singleton" module Timber module Patterns module DelegatedSingleton def self.included(klass) klass.class_eval do extend ClassMethods include Singleton end end module ClassMethods private def method_missing(name, *args, &block) instance.send(name, *args, &block) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/patterns/delegated_singleton.rb |