Sha256: 2c14f8b575fe69f6693262a6c780572d75d172f4d76d8f0b129ee4b348c6dc12

Contents?: true

Size: 275 Bytes

Versions: 4

Compression:

Stored size: 275 Bytes

Contents

module TestBelt::Utils
  class << self

    def local_public_instance_methods(klass)
      methods = klass.public_instance_methods
      while (klass.superclass)
        methods -= (klass = klass.superclass).public_instance_methods
      end
      methods
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
test-belt-2.0.1 lib/test_belt/utils.rb
test-belt-2.0.0 lib/test_belt/utils.rb
test-belt-1.1.2 lib/test_belt/utils.rb
test-belt-1.1.1 lib/test_belt/utils.rb