ruby-1.9
Rails not using correct version of Ruby
New information This is what happens with rails console: Loading development environment (Rails 3.1.1) ruby-1.9.2-p290 :001 > RUBY_VERSION[详细]
2023-04-13 00:12 分类:问答Ruby hash permutation
Is there any quick way to get a (random) permutation of a given hash? For example with arrays I can use the sample method as in[详细]
2023-04-10 09:16 分类:问答Trouble with threads in OSX and Ruby 1.9.2
Running the following code in IRB: t = Thread.new { loop { puts \'Hi\' } } I receive a single hi and then no more output.Only if I begin pressing the enter key do I receive output as expected until[详细]
2023-04-09 09:44 分类:问答What aynchronous Ruby server to use?
We\'re starting development of the new game project using Ruby. We decided to use one of the asynchronous Rub开发者_JAVA百科y servers, but we cannot decide which one to choose. Options are:[详细]
2023-04-09 04:34 分类:问答Ruby: How to pass options to test::unit in 1.9.3
I want to run a test file: # xxx.rb require \'test/unit\'; class XTest < Test::Unit::TestCase; def test_xxx; end; end[详细]
2023-04-09 03:49 分类:问答How can I get Qt4 running with ruby 1.9.2 on Windows 7?
Summary I\'m writing a Ruby 1.9.2 app using Qt4 for its GUI which I want to distribute on Linux, OS X and Windows.I have the app running fine on everything except my Windows 7 64-bit box.[详细]
2023-04-08 16:43 分类:问答Can I dynamically define a Ruby method that takes a block?
I know that I can dynamically define methods on a class using define_method, and that I specify the parameters this method take开发者_高级运维s using the arity of the block.[详细]
2023-04-08 02:04 分类:问答Ruby 1.9: Break statement from recursive functions now a syntax error?
I\'m updating a bundle (GetBundles) to be compatible with Ruby 1.9 (1.9.2 specifically). This script uses[详细]
2023-04-05 09:39 分类:问答How can I splattify an anonymous object so I can use &method on it?
I\'m wanting to use the &method(:method_name) idiom when there\'s more than one object required by method_name. Can I do this under Ruby 1.9?[详细]
2023-04-05 03:57 分类:问答Testing Ruby code snippets with eval() in Ruby 1.9
I would like to use eval() in Ruby 1.9 to test little pieces of ruby code in an interactive way. A long time ago (around Ruby 1.4) I found a neat script on the internet providing this functionality开发[详细]
2023-04-03 23:08 分类:问答