Sha256: 147a668d2a47948b63979db7937c604f45cb4824329216c367240a82ea4d7e4c

Contents?: true

Size: 455 Bytes

Versions: 28

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module RBS
  module Prototype
    class Runtime
      module Reflection
        def self.object_class(value)
          @object_class ||= Object.instance_method(:class)
          @object_class.bind_call(value)
        end

        def self.constants_of(mod, inherit = true)
          @constants_of ||= Module.instance_method(:constants)
          @constants_of.bind_call(mod, inherit)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rbs-3.8.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.8.0 lib/rbs/prototype/runtime/reflection.rb
rbs-3.8.0.pre.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.7.0.pre.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.7.0.dev.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.6.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.6.0 lib/rbs/prototype/runtime/reflection.rb
rbs-3.6.0.pre.3 lib/rbs/prototype/runtime/reflection.rb
rbs-3.6.0.pre.2 lib/rbs/prototype/runtime/reflection.rb
rbs-3.6.0.pre.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.6.0.dev.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.3 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.2 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.1.pre.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.0 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.0.pre.2 lib/rbs/prototype/runtime/reflection.rb
rbs-3.5.0.pre.1 lib/rbs/prototype/runtime/reflection.rb
rbs-3.4.4 lib/rbs/prototype/runtime/reflection.rb
rbs-3.4.3 lib/rbs/prototype/runtime/reflection.rb