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

Version Path
facets-1.8.0 lib/facets/core/kernel/meta_eval.rb
facets-1.8.20 lib/facets/core/kernel/meta_eval.rb
facets-1.8.49 lib/facets/core/kernel/meta_eval.rb
facets-1.8.51 lib/facets/core/kernel/meta_eval.rb
facets-1.8.54 lib/facets/core/kernel/meta_eval.rb
facets-1.8.8 lib/facets/core/kernel/meta_eval.rb