irb
Re-using Ruby DSL in a REPL or irb?
I have developed a simple DSL for tasks on a UniVerse database in jruby. It looks something like this[详细]
2023-03-12 09:13 分类:问答Why do things sometimes go missing from my irb history?
Sometimes things are missing from my irb history. This has been happening for years and I haven\'t really noticed a 开发者_JAVA百科pattern. I\'ll use irb for a while, control-d out of it, come back in[详细]
2023-03-11 07:27 分类:问答Troubles with parallel processes in IRB on Mac
I am working with a database via IRB, and I would like to make periodic changes in the database (e.g., every 10 sec) showing the log in STDOUT.[详细]
2023-03-10 18:34 分类:问答File Loading in irb
I have a Ruby method that should load a spe开发者_StackOverflow社区cified file when called: def self.from_file(file_name, origin = nil)[详细]
2023-03-10 08:24 分类:问答How to run a .rb file from IRB?
I am starting out with Ruby on Rails. I am currently going through a tutorial where it says that I have to run a .rb file from IRB and that that will create a .xml file in my current directory.[详细]
2023-03-08 14:31 分类:问答Why does the =~ operator only sometimes have side effects?
I\'ve noticed a side effect in Ruby/Oniguruma that is only present in 1 out of 4 seemingly equivalent statements. Why is the variable day defined in 009, but not in 003, 005 or 007?[详细]
2023-03-08 12:06 分类:问答How to format irb command prompt
Previously I was using Ruby 1.8 and my irb command prompt used to look like this: Air ~: irb >> a = 1[详细]
2023-03-06 10:57 分类:问答NameError: uninitialized constant Object::User
I searched the other po开发者_如何学运维sts that had this issue and could not find one that fixed my particular issue. My irb is going crazy. I am trying to change user roles in my database but I can\[详细]
2023-03-05 17:00 分类:问答Generic way to paginate output of IRB or Rails console
The output of an IRB command is often too large for one \"screen\" (even if I scroll up - I am using Windows - I cannot get to the start of the output).[详细]
2023-03-05 01:32 分类:问答Backspace and arrow keys aren't working in IRB(Git Bash console) on windows machine
I just installed ruby 1.9.2 on windows machine and Backspace or any other arrow keys don\'t work. This happens only when I open IRB on Git Bash console. But it works fine on Windows console. Any help[详细]
2023-02-25 16:25 分类:问答