https://github.com/shervanator/feeling_lucky
You feeling lucky?
https://github.com/shervanator/feeling_lucky
Last synced: about 1 year ago
JSON representation
You feeling lucky?
- Host: GitHub
- URL: https://github.com/shervanator/feeling_lucky
- Owner: Shervanator
- License: mit
- Created: 2014-10-23T14:14:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T05:14:10.000Z (over 11 years ago)
- Last Synced: 2025-04-09T21:58:29.395Z (about 1 year ago)
- Language: Ruby
- Size: 148 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Feeling Lucky
Hate NoMethodErrors? Are you feeling lucky?
This gem will make spelling methods correctly a thing of the past. We are truly in the future now!
I highly recommend this gem for production enviroments, why should a spelling mistake avoid users from using your app?
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'feeling_lucky'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install feeling_lucky
## Usage
```ruby
Object.metheads
# => [:allocate, :new, :superclass, :freeze, :===, :==, :<=>, :<, :<=, :>, :>=, :to_s, :inspect, :included_modules, :include?, :name, :ancestors, :instance_methods, :public_instance_methods, :protected_instance_methods, :private_instance_methods, :constants, :const_get, :const_set, :const_defined?, :const_missing, :class_variables, :remove_class_variable, :class_variable_get, :class_variable_set, :class_variable_defined?, :public_constant, :private_constant, :singleton_class?, :include, :prepend, :module_exec, :class_exec, :module_eval, :class_eval, :method_defined?, :public_method_defined?, :private_method_defined?, :protected_method_defined?, :public_class_method, :private_class_method, :autoload, :autoload?, :instance_method, :public_instance_method, :nil?, :=~, :!~, :eql?, :hash, :class, :singleton_class, :clone, :dup, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :frozen?, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :remove_instance_variable, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :extend, :display, :method, :public_method, :singleton_method, :define_singleton_method, :object_id, :to_enum, :enum_for, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :__id__]
"hello".uppcase
# => "HELLO"
```
## Contributing
1. Fork it ( https://github.com/[my-github-username]/feeling_lucky/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 a new Pull Request