Sha256: 2ad6555424b7647f943bc58983f0c1286a59aefd0f940166752a72635a5d0469
Contents?: true
Size: 328 Bytes
Versions: 3
Compression:
Stored size: 328 Bytes
Contents
module Bogus class ClassMethods extend Bogus::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.0.4 | lib/bogus/class_methods.rb |
bogus-0.0.3 | lib/bogus/class_methods.rb |
bogus-0.0.3.rc.2 | lib/bogus/class_methods.rb |