mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
irb: add examples (#23589)
* irb: add examples * irb: remove redundant description
This commit is contained in:
+20
-1
@@ -1,9 +1,28 @@
|
||||
# irb
|
||||
|
||||
> Interactive Ruby shell.
|
||||
> Evaluate Ruby code read from `stdin`.
|
||||
> More information: <https://ruby.github.io/irb/>.
|
||||
|
||||
- Start the interactive shell:
|
||||
|
||||
`irb`
|
||||
|
||||
- Start the interactive shell with the simple prompt:
|
||||
|
||||
`irb --simple-prompt`
|
||||
|
||||
- Start the interactive shell without reading the configuration file:
|
||||
|
||||
`irb -f`
|
||||
|
||||
- Evaluate Ruby code read from `stdin`:
|
||||
|
||||
`echo "{{puts 'Hello world'}}" | irb --noecho`
|
||||
|
||||
- Display help:
|
||||
|
||||
`irb {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`irb {{[-v|--version]}}`
|
||||
|
||||
Reference in New Issue
Block a user