Sha256: 8b3a92597a4db035c30db49649fe75767ed9d6fbd62cf3c48d88543e6bfd5a7b
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module Bogus class ClassMethods extend Takes takes :klass def all klass.methods - Class.methods end def get(name) klass.method(name) end def remove(name) klass.instance_eval "undef #{name}" end def define(body) klass.instance_eval(body) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.0 | lib/bogus/class_methods.rb |