https://github.com/siman-man/lier
Lier reverses return value of method which end with '?'.
https://github.com/siman-man/lier
gem joke ruby
Last synced: 11 months ago
JSON representation
Lier reverses return value of method which end with '?'.
- Host: GitHub
- URL: https://github.com/siman-man/lier
- Owner: siman-man
- License: mit
- Created: 2017-04-02T21:16:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T10:08:13.000Z (over 7 years ago)
- Last Synced: 2025-06-15T08:56:39.401Z (about 1 year ago)
- Topics: gem, joke, ruby
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Lier
Lier reverses return value of method which end with '?'. (without `respond_to?`)
## Installation
install it yourself as:
```
$ gem install lier
```
## Usage
```ruby
require 'lier'
p (1..10).include?(3) #=> true
p (1..10).include?(100) #=> false
p [1, 2, 3].all?(&:odd?) #=> false
p [1, 2, 3].any?(&:odd?) #=> true
using Lier
p (1..10).include?(3) #=> false
p (1..10).include?(100) #=> true
p [1, 2, 3].all?(&:odd?) #=> true
p [1, 2, 3].any?(&:odd?) #=> false
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/siman-man/lier. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).