Skip to content

Instantly share code, notes, and snippets.

@jschementi
Created April 20, 2009 23:08
Show Gist options
  • Save jschementi/98833 to your computer and use it in GitHub Desktop.
Save jschementi/98833 to your computer and use it in GitHub Desktop.
CodePlex Bug 674
module Foo
def self.file
__FILE__
end
end
c:\dev>ir
>>> autoload :Foo, 'foo.rb'
=> nil
>>> Foo.file
=> ".\\foo.rb"
c:\dev>irb
irb(main):001:0> autoload :Foo, 'foo.rb'
=> nil
irb(main):003:0> Foo.file
=> "./foo.rb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment