Skip to content

Instantly share code, notes, and snippets.

@gf3
Forked from stouset/foo.rb
Created January 22, 2013 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gf3/4599117 to your computer and use it in GitHub Desktop.
Save gf3/4599117 to your computer and use it in GitHub Desktop.
class Foo
autoload :Bar, 'foo/bar'
autoload :Baz, 'foo/baz'
end
require 'foo'
class Foo::Bar
end
require 'foo'
class Foo::Baz
autoload :Qux, 'foo/baz/qux'
end
require 'foo/bar'
class Foo::Baz::Qux
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment