Skip to content

Commit b205907

Browse files
Update COMPARED_WITH_PRY.md (#984)
Document `cd object` and `cd ..` commands introduced in 1.14.0 by #971
1 parent 9ce6972 commit b205907

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

COMPARED_WITH_PRY.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

55
Feel free to chip in and update this table - we appreciate your help!
66

7-
| Feature | Pry | IRB | Note |
8-
| ------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
9-
| Supported Rubies | `>= 2.0` | `>= 2.7` | |
10-
| Source code browsing | `show-source` | `show_source` | IRB's `show_source` can't display C source. See [#664](https://github.com/ruby/irb/issues/664) |
11-
| Document browsing | `ri` | `show_doc` | |
12-
| Live help system | `help` or `command_name --help` | `help` | IRB doesn't support detailed descriptions for individual commands yet |
13-
| Open methods in editors | `edit` | `edit` | |
14-
| Syntax highlighting | Yes | Yes | |
15-
| Command shell integration | Yes | No | Currently, there's no plan to support such features in IRB |
16-
| Navigation | - `cd object` to enter `object` <br/> - `cd ..` to leave the current object <br/> - `nesting` to list nesting levels | - `pushws object` <br/> - `popws` <br/> - `workspaces` | We plan to refine IRB's commands in the future |
17-
| Runtime invocation | `binding.pry` | `binding.irb` | |
18-
| Command system | Yes | No | Planned in [#513](https://github.com/ruby/irb/issues/513) and [#588](https://github.com/ruby/irb/issues/588) |
19-
| Input history | [Comprehensive support](https://github.com/pry/pry/wiki/History) | Supports retrieving previous input and the `history` command | The `history` command doesn't support as many flags yet, but contributions are welcome. |
20-
| Pager support | Command output and return value | Command output and return value | |
21-
| Debugger integration | With `byebug` through [pry-byebug](https://github.com/deivid-rodriguez/pry-byebug) gem | Supports [`irb:rdbg`](https://github.com/ruby/irb#debugging-with-irb) sessions | |
22-
| Rails console | Through [`pry-rails`](https://github.com/pry/pry-rails) gem | Rails' default | Rails console with IRB doesn't have commands like `show-routes` or `show-models` |
7+
| Feature | Pry | IRB | Note |
8+
| ------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
9+
| Supported Rubies | `>= 2.0` | `>= 2.7` | |
10+
| Source code browsing | `show-source` | `show_source` | IRB's `show_source` can't display C source. See [#664](https://github.com/ruby/irb/issues/664) |
11+
| Document browsing | `ri` | `show_doc` | |
12+
| Live help system | `help` or `command_name --help` | `help` | IRB doesn't support detailed descriptions for individual commands yet |
13+
| Open methods in editors | `edit` | `edit` | |
14+
| Syntax highlighting | Yes | Yes | |
15+
| Command shell integration | Yes | No | Currently, there's no plan to support such features in IRB |
16+
| Navigation | - `cd object` to enter `object` <br/> - `cd ..` to leave the current object <br/> - `nesting` to list nesting levels | - `pushws object` <br/> - `popws` <br/> - `workspaces` <br /> - `cd object`/`cd ..` (since [1.14.0](https://github.com/ruby/irb/releases/tag/v1.14.0)) | We plan to refine IRB's commands in the future |
17+
| Runtime invocation | `binding.pry` | `binding.irb` | |
18+
| Command system | Yes | No | Planned in #513 and #588 |
19+
| Input history | [Comprehensive support](https://github.com/pry/pry/wiki/History) | Supports retrieving previous input and the `history` command | The history command doesn't support as many flags yet, but contributions are welcome. |
20+
| Pager support | Command output and return value | Command output and return value | |
21+
| Debugger integration | With `byebug` through [pry-byebug](https://github.com/deivid-rodriguez/pry-byebug) gem | Supports [`irb:rdbg`](https://github.com/ruby/irb#debugging-with-irb) sessions | |
22+
| Rails console | Through [`pry-rails`](https://github.com/pry/pry-rails) gem | Rails' default | Rails console with IRB doesn't have commands like `show-routes` or `show-models` |

0 commit comments

Comments
 (0)