An open API service indexing awesome lists of open source software.

https://github.com/bronzdoc/citrusbyte-demo

Citrusbyte-demo
https://github.com/bronzdoc/citrusbyte-demo

Last synced: 7 months ago
JSON representation

Citrusbyte-demo

Awesome Lists containing this project

README

          

# Citrusbyte test [![Build Status](https://travis-ci.org/bronzdoc/citrusbyte-demo.svg?branch=master)](https://travis-ci.org/bronzdoc/citrusbyte-demo)

A little demo for Citrusbyte, implementation of the flatten method

## Usage
```ruby
a = [[1], 2, [[3, 4], 5], [[[]]], [[[6]]], 7, 8, []]
a.custom_flatten #=> [1, 2, 3, 4, 5, 6, 7, 8]
```
## Run the example
```
ruby example.rb
```