Sha256: 35820b22bb7c9ccfedde05b28b767bbb9cea2cb9853d46a87e3a58c7033cde69

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rb-threadframe-0.41 test/unit/cfunc-use.rb
rb-threadframe-0.40 test/unit/cfunc-use.rb