Sha256: 89f4fb544aa6a73394d71cfa69c59a215e28301e5efe60c1da79066b6330d8b4
Contents?: true
Size: 366 Bytes
Versions: 71
Compression:
Stored size: 366 Bytes
Contents
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
71 entries across 71 versions & 1 rubygems