Sha256: fda86e8fb8fa1ed7d6d6b390f2191ebcf069b2cd5088f36b1d2186eb875348ae
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module Lotion module Concern def self.extended( base ) base.instance_exec do def included( base=nil, &block ) if block_given? @_included_block = block else if const_defined? :ClassMethods base.extend const_get( :ClassMethods ) end if @_included_block base.class_eval &@_included_block end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lotion-0.0.1 | lib/lotion/concern.rb |