irb
Why does irb insert control characters into my reverse-interactive-search buffer?
If I do a reverse interactive search in irb and then enter a control character (arrow keys are the only ones I\'ve seen this with actually). So I start with this session:[详细]
2023-02-03 14:09 分类:问答How can I reload a script in IRB?
I am writing a Ruby script for use in the Rails environment, but I chose to run it from irb because reloading the Rails console can be a pain. Now the wait time is much shorter from irb, but I\'m both[详细]
2023-02-03 08:04 分类:问答How can I input multibyte characters in rails console (or irb)?
guys. I am developing a Chinese application with rails. Now I want to input some Chinese characters in rails console but 开发者_StackOverflow社区cannot do that, either in irb.[详细]
2023-02-02 13:17 分类:问答dropping user to IRB after reading from pipe
I have this script that drops the user to an IRB session when executed. All good, but when I use *nix pipes to get the input (e.g. with cat), the IRB session ends immediately.[详细]
2023-02-02 09:36 分类:问答send data from irb file to ruby on rails
I\'m working on an project that involves an RFID reader. I have written a simple .rb file that reads the RFID tag and outputs the uid. What i want to do now is get that data to my Ruby on Rails applic[详细]
2023-02-01 05:16 分类:问答How can I clear the rails console history
When I run rails c and press the up key when irb starts up, I can see the last commands I entered when my app dropped to irb after encountering a debugger command for the ruby-debug gem. I would not o[详细]
2023-01-30 13:18 分类:问答Truncate #inspect output in irb (ruby)
I want to truncate #inspect output in irb (a large output must be cropped to MAX_LEN). Currently, I override :inspect, :to_s methods for all specific objects.[详细]
2023-01-29 15:52 分类:问答Why doesn't Date.today work on Ruby console (irb)?
In irb I am trying Date.today and it fails. I was origi开发者_如何学运维nally trying to do: Date.today.strftime \"%b %d, \'%y\"[详细]
2023-01-28 07:26 分类:问答How do you save IRB inputs to a .rb file?
Might sound like a newbie question (and it is since I am new 开发者_如何学Goto Ruby and IRB) but is there a way to save the commands you did in IRB to file? I am playing with WATIR and would love to s[详细]
2023-01-25 20:02 分类:问答frequently flush irb history to file
irb can write command history to a file, but it only does this when your irb session ends. I would like to write out my command history more frequently: as often as on every command (like shell histo[详细]
2023-01-25 15:26 分类:问答