Sha256: 3b10e4406bd31771de1bae05780413f8995a54d1217b08fb326f1689765140f4

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

class CleanClass < BasicObject

  # remove methods from the class!
  #def self.purge_methods

    (self.instance_methods-[
        :undef_method,
        :object_id,
        :__send__,
        :methods,
        :alias,
        :new
    ]).each do |method|
      undef_method method
    end

  #end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
asynchronous-2.1.0 lib/asynchronous/clean_class.rb
asynchronous-2.0.0 lib/asynchronous/clean_class.rb
asynchronous-1.0.4 lib/asynchronous/clean_class.rb
asynchronous-1.0.3 lib/asynchronous/clean_class.rb
asynchronous-1.0.2 lib/asynchronous/clean_class.rb
asynchronous-1.0.1 lib/asynchronous/clean_class.rb