Sha256: b231bc59d70d7e08799d1cbfed129453e2fb7626c1e3b6f5cc01c88407c04dfd

Contents?: true

Size: 1.55 KB

Versions: 1

Compression:

Stored size: 1.55 KB

Contents

# 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).

***

<p>
  This project is sponsored by:<br />
  <a href="https://sashite.com/"><img
    src="https://github.com/fixrb/defi/raw/main/img/sashite.png"
    alt="Sashite" /></a>
</p>

[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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
defi-2.0.5 README.md