# Defi [![Build Status](https://api.travis-ci.org/fixrb/defi.svg?branch=main)][travis] [![Gem Version](https://badge.fury.io/rb/defi.svg)][gem] [![Inline docs](https://inch-ci.org/github/fixrb/defi.svg?branch=main)][inchpages] [![Documentation](https://img.shields.io/:yard-docs-38c800.svg)][rubydoc] > Challenge library. ## Installation Add this line to your application's Gemfile: ```ruby gem "defi" ``` And then execute: $ bundle Or install it yourself as: $ gem install defi ## Usage Let's multiply by `7` the number `6`: ```ruby Defi.send(:*, 7).to(6).call # => 42 ``` Now, let's challenge "`foo`" with `boom` method: ```ruby Defi.send(:boom).to("foo").call # NoMethodError: undefined method `boom' for "foo":String ``` Let's challenge "`hello world`" with `gsub!` in isolation: ```ruby some_text = "hello world" Defi.send(:gsub!, "world", "Alice").to!(some_text).call # => "hello Alice" some_text # => "hello world" ``` ## Contact * Source code: https://github.com/fixrb/defi/issues ## Versioning __Defi__ follows [Semantic Versioning 2.0](https://semver.org/). ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). ***
[gem]: https://rubygems.org/gems/defi [travis]: https://travis-ci.org/fixrb/defi [inchpages]: https://inch-ci.org/github/fixrb/defi [rubydoc]: https://rubydoc.info/gems/defi/frames