Sha256: 275ba7446a440b4e14a98d43a0cc381af47aea5f18281fafc7a63fffd0b53088
Contents?: true
Size: 241 Bytes
Versions: 6
Compression:
Stored size: 241 Bytes
Contents
require 'facets/core/kernel/meta_class' module Kernel # Evaluate code in a metaclass. def meta_eval( str=nil, &blk ) if str meta_class.instance_eval( str ) else meta_class.instance_eval( &blk ) end end end
Version data entries
6 entries across 6 versions & 1 rubygems