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:
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
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.
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.
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
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
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.
In irb I am trying Date.today and it fails. I was origi开发者_如何学运维nally trying to do: Date.today.strftime \"%b %d, \'%y\"
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
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