Defi

Build Status Gem Version Inline docs Documentation

Challenge library.

Installation

Add this line to your application's Gemfile:

gem 'defi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install defi

Usage

Let's multiply by 7 the number 6:

Defi.send(:*, 7).to(6).call # => 42

Now, let's challenge "foo" with boom method:

Defi.send(:boom).to('foo').call # NoMethodError: undefined method `boom' for "foo":String

Let's challenge "hello world" with gsub! in isolation:

some_text = 'hello world'
Defi.send(:gsub!, 'world', 'Alice').to!(some_text).call # => "hello Alice"
some_text # => "hello world"

Contact

Rubies

Versioning

Defi follows Semantic Versioning 2.0.

License

The gem is available as open source under the terms of the MIT License.


This project is sponsored by:
Sashite