https://github.com/bagilevi/autoloading
Autoload Ruby classes or modules by inferring the file path from the name
https://github.com/bagilevi/autoloading
Last synced: 3 months ago
JSON representation
Autoload Ruby classes or modules by inferring the file path from the name
- Host: GitHub
- URL: https://github.com/bagilevi/autoloading
- Owner: bagilevi
- License: mit
- Created: 2014-03-23T13:27:57.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-05T15:20:19.000Z (almost 11 years ago)
- Last Synced: 2025-01-13T04:41:49.671Z (4 months ago)
- Language: Ruby
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Autoloading
Autoload Ruby classes or modules by inferring the file path from the name
## Installation
Add this line to your application's Gemfile:
gem 'autoloading'
And then execute:
$ bundle
Or install it yourself as:
$ gem install autoloading
## Usage
# hello.rb
module Hello
extend Autoloading
end# hello/kitty.rb
module Hello::Kitty
endrequire 'hello'
Hello::Kitty## See also
* [application_module gem](https://github.com/bagilevi/application_module)
## Contributing
1. Fork it ( http://github.com/bagilevi/autoloading/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request