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.
- Host: GitHub
- URL: https://github.com/sammi-turner/roll-your-own-ruby
- Owner: sammi-turner
- License: mit
- Created: 2024-09-19T14:33:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-02T09:35:59.000Z (over 1 year ago)
- Last Synced: 2025-03-28T01:55:36.869Z (about 1 year ago)
- Topics: irb, ruby, ruby2d
- Language: Ruby
- Homepage:
- Size: 318 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Roll-Your-Own-Ruby
A front-end for the ruby interactive shell in a single ruby script.

## 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
```