mattn / mruby-require

39 stars 23 forks source link

Complement extname when absolute && require only #34

Closed ksss closed 8 years ago

ksss commented 8 years ago

In CRuby, Kernel#require complement the extname (like .rb, .so) when absolute path.(Kernel#load don't)

I think mruby-require will be better if support this behavior.

Use case:

require File.expand_path("../helper", __FILE__)