Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stve/eager
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stve/eager
- Owner: stve
- License: mit
- Created: 2012-05-26T01:12:19.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-27T03:44:07.000Z (over 12 years ago)
- Last Synced: 2024-04-14T14:15:37.791Z (7 months ago)
- Language: Ruby
- Size: 104 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Eager
Simple eager-loading for ruby.
*Note: Eager is not yet available on rubygems.org.*
## Usage
```ruby
module MyGem
extend Eagerregister_autoloads(self) do
autoload :Util, 'util'
end
end
```By default, Eager will serve as a pass-thru to autoload on your class. Eager
will also add an `eager_load!` method to your class as a means to require all
defined autoloads for thread-safety.## Inspiration
Eager is derived from the [AWS SDK for Ruby](https://github.com/amazonwebservices/aws-sdk-for-ruby).
## Contributing
Pull requests welcome: fork, make a topic branch, commit (squash when possible) *with tests* and I'll happily consider.
## Copyright
Copyright (c) 2012 Steve Agalloco. See [LICENSE](https://github.com/spagalloco/eager/blob/master/LICENSE.md) for detail