Sha256: ff5d449496f7f07859956bda198fa68368b2f4ab06b3610eaae140ab3ca72326
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> # Things related to file/module status module Trepanning module FileName def find_load_path(filename) cl = Rubinius::CodeLoader.new(filename) if cl.verify_load_path(filename) path = cl.instance_variable_get('@load_path') path.end_with?(filename) ? filename : nil else nil end end end end if __FILE__ == $0 include Trepanning::FileName require 'tmpdir.rb' [__FILE__, 'tmpdir.rb'].each do |name| p find_load_path(name) end end
Version data entries
4 entries across 4 versions & 1 rubygems