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

https://github.com/sammi-turner/roll-your-own-ruby

A front-end for the ruby interactive shell in a single ruby script.
https://github.com/sammi-turner/roll-your-own-ruby

irb ruby ruby2d

Last synced: about 1 year ago
JSON representation

A front-end for the ruby interactive shell in a single ruby script.

Awesome Lists containing this project

README

          


# Roll-Your-Own-Ruby

A front-end for the ruby interactive shell in a single ruby script.


Ryor shell running


## Requirements

1. [Ruby](https://www.ruby-lang.org/en/)
2. [Ruby2d](https://www.ruby2d.com/)
3. [stringio](https://rubygems.org/gems/stringio/versions/0.0.1?locale=en)


## Three ways to run the script


### 1. with the ruby command

```
ruby ryor.rb
```


### 2. by giving permissions

give execution permissions with

```
chmod +x main.rb
```

then run the script directly with

```
./ryor.rb
```

### 3. by adding to the PATH variable

rename the file to remove the .rb extension (optional but conventional for executables)

```
mv ryor.rb ryor
```

Move the script to a directory in your PATH, such as /usr/local/bin (you may need sudo for this)

```
sudo mv main /usr/local/bin/
```

Then you can run the script from any directory with the command

```
ryor
```