Sha256: 6a59548ecd482a11bdf794eddb2bd1178893cecffdb7816950c7a104025d4ba0
Contents?: true
Size: 699 Bytes
Versions: 30
Compression:
Stored size: 699 Bytes
Contents
####################################################################################################### # Substantial portions of this code were adapted from the Radiant CMS project (http://radiantcms.org) # ####################################################################################################### module Simpleton def self.included(base) base.extend(ClassMethods) end module ClassMethods def instance(&block) @instance ||= new block.call(@instance) if block_given? @instance end def method_missing(method, *args, &block) instance.respond_to?(method) ? instance.send(method, *args, &block) : super end end end
Version data entries
30 entries across 30 versions & 3 rubygems