irb
How to run IRB.start in context of current class
I\'ve been just going through PragProg Continuous Testing With Ruby, where they talk about invoking IRB in context of current class to inspect the code manually.[详细]
2023-01-25 01:03 分类:问答How to disable the logger in script/console
In my .irbrc file I require \'logger\' to allow me to see the SQL executed when querying ActiveRecords all while in the script/console.[详细]
2023-01-24 03:04 分类:问答Rails console - use image_tag method
How can I execute a image_tag me开发者_C百科thod in a Rails console Run the console $ rails c Load helpers[详细]
2023-01-23 19:25 分类:问答In Ruby, can I limit the amount of drilling down a object does when displaying itself in irb or when using .inspect?
I\'m writing a class for solving sudoku puzzles that has some two dimensional arrays which contain pointers to Cells that point back to these two dimensional arrays. Something like this:[详细]
2023-01-23 07:35 分类:问答Rails3 irb console vs rails console?
Using Rails3 and Ruby 1.9.2, I am new, just learning Ruby/Rails-- When I run irb I end up with irb(main):001:0> which is fine.[详细]
2023-01-22 21:36 分类:问答What alternatives to IRB are there?
In the python world, there are a number of alternative python interpreters that add co开发者_JAVA技巧ol additional features. One particularly useful example is bpython, which adds dynamic syntax highl[详细]
2023-01-18 23:09 分类:问答Rails irb default directory
I\'m trying to include a source code file when I run irb but irb is unable to find it. For example, say I am in the following directory in terminal:[详细]
2023-01-17 11:02 分类:问答Table format in Hirb for .where Rails 3 queries
I am using http://tagaholic.me/hirb/ to format AR queries in console with pretty, MySQL like table views.[详细]
2023-01-14 21:07 分类:问答Upgrading irb on OS X
I\'m trying to update irb on my OS X 10.5 macbook: $ irb -v 开发者_StackOverflow中文版irb 0.9.6(09/06/30)[详细]
2023-01-14 10:34 分类:问答How does one embed IIRB inside of a IronRuby program?
In Ruby main, you can embed IRB inside of a Ruby script as described here. Is there a way to开发者_开发技巧 do something similar with IIRB inside an IronRuby script?http://wiki.github.com/ironruby/iro[详细]
2023-01-13 17:35 分类:问答