mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 08:08:02 +00:00
Update the wording in the latest post.
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
# Evaluating One-Off Commands
|
# Evaluating One-Off Commands
|
||||||
|
|
||||||
When I need to quickly test something out in Ruby, I will often reach for
|
When I need to quickly test something out in Ruby, I will often reach for
|
||||||
`irb`. There is an even quicker way to send a line of code to ruby for
|
`irb`. However, there is an even quicker way to send a line of code to
|
||||||
evaluation. Use the `ruby` binary with the `-e` flag followed by your line
|
ruby for evaluation. Use the `ruby` binary with the `-e` flag followed
|
||||||
of ruby. For instance,
|
by your line of ruby. For instance,
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ruby -e 'puts Class.ancestors'
|
$ ruby -e 'puts Class.ancestors'
|
||||||
|
|||||||
Reference in New Issue
Block a user