Sha256: a21fd3a599bf3b72a34f30f7dd064a4e294183960ef09d925c27b7693832573a

Contents?: true

Size: 239 Bytes

Versions: 7

Compression:

Stored size: 239 Bytes

Contents

class Object
  unless method_defined?(:meta_class)
    def meta_class
      (class << self; self; end)
    end
  end
  
  unless method_defined?(:meta_eval)
    def meta_eval(&block)
      meta_class.instance_eval(&block)
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
cjbottaro-aegis-1.3.0 lib/aegis/meta_class.rb
cjbottaro-aegis-1.3.1 lib/aegis/meta_class.rb
cjbottaro-param_protected-1.1.0 lib/param_protected/meta_class.rb
param_protected-1.3.1 lib/param_protected/meta_class.rb
param_protected-1.3.0 lib/param_protected/meta_class.rb
param_protected-1.2.0 lib/param_protected/meta_class.rb
param_protected-1.1.0 lib/param_protected/meta_class.rb