Tuturu
Tuturuuuu~♪
-- Mayuri Shiina / Steins;Gate
Cast everything to true tuturu!
Requirements
- Ruby 1.9.3+
Installation
Add this line to your application's Gemfile:
gem 'tuturu'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tuturu
Usage
true.tuturu #=> true
false.tuturu #=> true
nil.tuturu #=> true
'Mayushi'.tuturu #=> true
Object.new.tuturu #=> true
true.to_true #=> true
false.to_true #=> true
nil.to_true #=> true
'Mayushi'.to_true #=> true
Object.new.to_true #=> true
Tuturu(true) #=> true
Tuturu(false) #=> true
Tuturu(nil) #=> true
Tuturu('Mayushi') #=> true
Tuturu(Object.new) #=> true
Credits
This gem is heavily inspired by ToNil.
Contributing
- Fork it ( https://github.com/quanon/tuturu )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- El Psy Congroo...