Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleander/classify
Converts strings into constants
https://github.com/oleander/classify
Last synced: about 2 months ago
JSON representation
Converts strings into constants
- Host: GitHub
- URL: https://github.com/oleander/classify
- Owner: oleander
- Created: 2011-02-18T02:13:23.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-02-18T03:17:27.000Z (almost 14 years ago)
- Last Synced: 2024-03-14T07:46:37.068Z (10 months ago)
- Language: Ruby
- Homepage: https://github.com/oleander/classify
- Size: 97.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Classify
Converts strings into constants using Ruby.
Something similar to Rails' [classify](http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-classify) method.
## How do use
require 'rubygems'
require 'classify'
>> class MyRandomString; end
>> Classify.it!("my_random_string")
=> MyRandomString
## How do install[sudo] gem install classify
## How to use it in a rails 3 projectAdd `gem 'classify'` to your Gemfile and run `bundle`.
## How to help
- Start by copying the project or make your own branch.
- Navigate to the root path of the project and run `bundle`.
- Start by running all tests using rspec, `rspec spec/classify_spec.rb`.
- Implement your own code, write some tests, commit and do a pull request.## Requirements
Classify is tested in OS X 10.6.6 using Ruby 1.8.7 and 1.9.2.