Sha256: 5e4e91c0dd10dba35d89f228faba0602a5c2a67777ea9f4399837a4257b33619
Contents?: true
Size: 387 Bytes
Versions: 52
Compression:
Stored size: 387 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
52 entries across 52 versions & 6 rubygems