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

https://github.com/janlelis/every_day_irb


https://github.com/janlelis/every_day_irb

developer-tools irb ruby ruby-console

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Every day… IRB [![[version]](https://badge.fury.io/rb/every_day_irb.svg)](https://badge.fury.io/rb/every_day_irb) [![Test](https://github.com/janlelis/every_day_irb/workflows/Test/badge.svg)](https://github.com/janlelis/every_day_irb/actions?query=workflow%3ATest)

Provides utility methods useful in IRB, like a `rq` method for requiring libraries, or `ls` for showing the list of files of the current directory. Part of [Irbtools](https://github.com/janlelis/irbtools).

## Setup

Add to your `Gemfile`:

```ruby
gem "every_day_irb"
```

## Usage

Execute this:

```ruby
extend EveryDayIrb
```

to get the following methods:

- ls(path = '.')
- cd(path = nil)
- cat(path)
- rq(lib)
- rr(lib)
- ld(lib)
- rerequire(lib)
- clear
- reset!

More info at the [Irbtools README](https://github.com/janlelis/irbtools#irbtools-methods) and in the [specs](https://github.com/janlelis/every_day_irb/blob/main/spec/every_day_irb_spec.rb).

## MIT License

Copyright (C) 2010-2022 Jan Lelis . Released under the MIT license.