Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkh/refine
Start using refine, today. Be ready for Ruby 2.0!
https://github.com/rkh/refine
Last synced: about 1 month ago
JSON representation
Start using refine, today. Be ready for Ruby 2.0!
- Host: GitHub
- URL: https://github.com/rkh/refine
- Owner: rkh
- Created: 2010-11-17T23:37:58.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-17T23:41:06.000Z (almost 14 years ago)
- Last Synced: 2024-04-24T15:19:16.757Z (7 months ago)
- Language: Ruby
- Size: 89.8 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Allows you to use `refine` in older Ruby versions. It will simply fall back to
`prepend` if available, to `include` otherwise (read: you will still pollute
global scope).## Installation
gem install refine
## Example
require 'refine' if RUBY_VERSION < '2.0'
module PassiveSupport
refine String do
def underscore
# ...
end
def camel_case
# ...
end
end
refine Module do
def parent
# ...
end
end
end
class MyFancyApp
using PassiveSupport
end