Sha256: 8c20ad0011e10e3b57a2c9dc14335413ca66bd008284c86553f73bb0f56917a0
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true module WebConsole class SourceLocation def initialize(binding) @binding = binding end if RUBY_VERSION >= "2.6" def path() @binding.source_location.first end def lineno() @binding.source_location.last end else def path() @binding.eval("__FILE__") end def lineno() @binding.eval("__LINE__") end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.6.0.beta8 | vendor/bundle/ruby/3.2.0/gems/web-console-4.2.1/lib/web_console/source_location.rb |
web-console-4.2.1 | lib/web_console/source_location.rb |