Sha256: 02297a12fe894c521985a2d0315cd225497ffd8d1b810eeda892bf5f654d2bca

Contents?: true

Size: 212 Bytes

Versions: 8

Compression:

Stored size: 212 Bytes

Contents

def cfunc_loc
  ftype, file = [nil, nil]
  1.times do
    1.times do
      f = RubyVM::ThreadFrame::current.prev
      ftype = f.type 
      file  = f.source_container[1]
    end
  end
  return [ftype, file]
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rb-threadframe-0.39 test/unit/cfunc-use.rb
rb-threadframe-0.38 test/unit/cfunc-use.rb
rb-threadframe-0.37 test/unit/cfunc-use.rb
rb-threadframe-0.36 test/unit/cfunc-use.rb
rb-threadframe-0.35 test/unit/cfunc-use.rb
rb-threadframe-0.34 test/unit/cfunc-use.rb
rb-threadframe-0.33 test/unit/cfunc-use.rb
rb-threadframe-0.32 test/unit/cfunc-use.rb