Sha256: 4eb9ccb5c3c1a5fe9dcf8af8815d326a049925e2908b0b3f91ddc8d6ea3bcd4b

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

dlext = RbConfig::CONFIG['DLEXT']

def mri_2?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" &&
    RUBY_VERSION =~ /^2/
end

if mri_2?
  require 'binding_of_caller/mri2'
elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
  require "binding_of_caller.#{dlext}"
elsif defined?(Rubinius)
  require 'binding_of_caller/rubinius'
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb
binding_of_caller-0.7.2 lib/binding_of_caller.rb
binding_of_caller-0.7.1 lib/binding_of_caller.rb
binding_of_caller-0.7 lib/binding_of_caller.rb