First  |  Prev |  Next  |  Last
Pages: 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
New, but this seems odd...
[Note: parts of this message were removed to make it a legal post.] Ok, granted that I'm pretty new to ruby, but this seems odd to me: irb(main):001:0> x = [1,2,3] => [1, 2, 3] irb(main):002:0> x.delete 2 => 2 irb(main):003:0> x => [1, 3] With this behavior, wouldn't "delete!" be a more appropriate name?... 9 Jul 2010 11:38
Global method usage in standard libs
I noticed that at least some of the standard libs use global methods to provide some kind of shortcut to the actual new method. For example the excellent Pathname class' objects can be generated either by Pathname.new('/home/someone') or simply through Pathname('/home/someone') The latter example is pos... 7 Jul 2010 13:27
Global methods in Ruby standard lib
I noticed that at least some of the standard libs use global methods to provide some kind of shortcut to the actual new method. For example the excellent Pathname class' objects can be generated either by Pathname.new('/home/someone') or simply through Pathname('/home/someone') The latter example is pos... 7 Jul 2010 10:07
Ruby switches
Let's say I have something like this case when "".empty? then puts "Empty" when "".nil? then puts "Nil" when "".include?("a") then puts "Includes 'a'" end Is there a way to do something like this instead? (This does not work since the methods in the switches are acting on Object instead of ""... 7 Jul 2010 15:40
rdoc 2.5.9 Released
On Jul 6, 11:41 pm, Eric Hodel <drbr...(a)segment7.net> wrote: rdoc version 2.5.9 has been released! * RDoc Project Page -http://rubyforge.org/projects/rdoc/ * RDoc Documentation -http://rdoc.rubyforge.org/ * RDoc Bug Tracker -http://rubyforge.org/tracker/?atid=2472&group_id=627&func=browse RDoc is a... 7 Jul 2010 07:56
[ANN] rdoc 2.5.9 Released
rdoc version 2.5.9 has been released! * RDoc Project Page - http://rubyforge.org/projects/rdoc/ * RDoc Documentation - http://rdoc.rubyforge.org/ * RDoc Bug Tracker - http://rubyforge.org/tracker/?atid=2472&group_id=627&func=browse RDoc is an application that produces documentation for one or more Ruby source ... 6 Jul 2010 23:19
rubygarden?
Anybody know what happened to rubygarden.org? -r -- Posted via http://www.ruby-forum.com/. ... 7 Jul 2010 14:34
save your money and open all blocked sites now
save your money and open all blocked sites now just enter to this proxy http://prog2010.zxq.net/proxy/ and put your site for free ... 6 Jul 2010 17:47
best way to make .rb into an executable for linux?
I have a pretty basic .rb script that I would like to turn into an executable. What is the best way to do this for Linux? I have no intentions of cross compatibility, so I don't care if it won't work for Windows or Mac. I've tried rubyscript2exe. Doesn't work, but afaik, that's old so whatevz. I've tried to ... 9 Jul 2010 08:19
Problem of share variable in function using thread
Hi All I got a little problem when using thread function and variable, let's say this code : require 'rubygems' require 'watir' require 'thread' def testfunc(id) total = id + 5 puts "id #{id} is #{total}" end threads = [] numberlist = [1, 2, 3] for id in numberlist threads << Thread.new {testfun... 7 Jul 2010 12:21
First  |  Prev |  Next  |  Last
Pages: 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61