1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/ruby_vm support for pre-2.0 BASERUBY

This was not requested :) but actually easier than the previous
so I just did it anyway.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2018-01-12 08:38:12 +00:00
parent 8a72c77c79
commit fbacf5faad
6 changed files with 16 additions and 9 deletions

View file

@ -20,7 +20,7 @@ class RubyVM::Scanner
attr_reader :__LINE__
def initialize path
src = Pathname.new __dir__
src = Pathname.new(__FILE__).realpath.dirname
src += path
@__LINE__ = 1
@__FILE__ = src.realpath.to_path