irb
irb copied to clipboard
interactive Ruby
IRB currently prints most of its output to STDOUT by calling `puts` directly. This means changing the output target is very difficult (e.g. print to a socket instead, which `ruby/debug`...
The main challenge of this support comes from acquiring the C-method source files: - Unless users install Ruby with `ruby-install` or `ruby-build -k`, Ruby's C source code wouldn't be preserved...
Currently IRB parses command line options with `IRB.parse_opts`, which means the output of `irb --help` needs to be manually updated. We should use `OptionParser` instead to make the task easier.
We need tests for them in `test_cmd.rb`: - [ ] `irb_require` - [ ] `irb` - [ ] `jobs` - [ ] `fg` - [ ] `kill`
In #513, I proposed extension API for commands, but it doesn't cover all the extension needs. For example, Rails defines [`controller` and `helpers` methods](https://github.com/rails/rails/blob/ef04fbb3b256beececfa44c47c4ec93ac6945e59/railties/lib/rails/console/helpers.rb#L4) (and [these methods](https://github.com/rails/rails/blob/ef04fbb3b256beececfa44c47c4ec93ac6945e59/railties/lib/rails/console/app.rb#L7) too) for its...
## Description `measure` does not seem to work when an exception occurs. ### Steps to Reproduce I want to measure the timeout of Regexp. #### Expected ``` $ irb irb(main):001:0>...
There are a few features defined as extensions: https://github.com/ruby/irb/blob/0e862c5751968c589904ed93c3d707d919390597/lib/irb/extend-command.rb#L314-L319 The intention was that those files will be lazily-loaded until the related methods are called. But if we look at `context.rb`,...
## Description I'm unsure if this falls under Reline, or IRB, if I have filed this in the wrong repository do let me know and I'll move it. IRB allows...
## Description Expected Behaviour: Launch IRB in TTY. Actual Behaviour: Can't seem to launch IRB in TTY, `CTRL + C`, `CTRL + Z`, or `CTRL + \` won't work. Needed...