All apps/Ruby

Ruby

ruby

A dynamic, open source programming language with a focus on simplicity and productivity.

Runs as ruby, irb|macOS, Linux, Windows|www.ruby-lang.org

Command form

ai-draft · 3 tasks · 10 fields

Run a script or an inline expression. Input-processing switches such as -n, -p and -i are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui ruby
Run RubyExample values, fixed in this page — nothing here reaches a terminal
Basic
Script file*
file
Script arguments
string
Warnings on
-w
Advanced
Require library
string
Load path
directory
TasksEach one presets the form for one job
Run a script
scriptargswarningsrequireinclude
Run an expression
expressionrequire
Check syntax
scriptcheck
ParametersOnly these flags are editable in the form
Inline script (-e)
string · repeatable
-e
Script file
path · positional 0
Script arguments
string · positional 1 · repeatable
Check syntax only
boolean
-c
Warnings on
boolean
-w
Verbose
boolean
--verbose-v
Debug mode
boolean
--debug-d
Require library
string · repeatable
-r
Load path
path · repeatable
-I
Change directory first
path
-C
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed ruby against its version. A form that does not match your version is not offered.