First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
class definition outside module
Hi, I have 2 classes, Parser and Util in parser.rb and util.rb respectively. Each has a lot of methods. I want to put them both inside one module but keep the class definition in separate files. So basically there will be 3 files now: mod.rb (that will have the module) and the 2 files mentioned above. Is it po... 7 Aug 2010 05:02
Now comes Zephyr v3.0
Hello Everyone, Zephyr has been a leader in comprehensive test management and now with Zephyr v3.0, Zephyr is changing the landscape by introducing quality intelligence to test management. We are pleased to inform you that Zephyr has come out with its new and enhanced version Zephyr v3.0, where quality intellige... 6 Aug 2010 23:39
Failed to install 'rubynode' gem after Snow Leopard upgrade
Hi, I've just upgraded to Mac OS X 10.6, and was following the instructions on the Rails blog (http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard) to upgrade my gems etc. This seemed to work OK, with the exception of the 'rubynode' gem which failed to reinstall. This is on a standard Mac OS X ins... 7 Aug 2010 00:44
Adding sugar to Ruby
* Regexp.union shortcut /Ruby\d/ | /test/i | "cheat" # creates a Regexp similar to: # /(Ruby\d|[tT][eE][sS][tT]|cheat)/ What's your opinion about these methods? I like the regex one. -- Posted via http://www.ruby-forum.com/. ... 7 Aug 2010 20:10
Problem with return value
Hi In this code : ------------------------------- def test_method(name) puts name 3+5 end return_value = test_method("James") puts return_value ------------------------------- why when the last statement executed , "puts" does not return "nil" and return 8? -- Posted via http://www.ruby-forum.co... 6 Aug 2010 15:58
comparing two arrays, too slow
[Note: parts of this message were removed to make it a legal post.] I don't have access to the database, but everyday I get a csv dump of all live customer listings. There are around 15,000 live listings. A record contains 3 fields: id, name, description Everyday some new accounts are created while others are d... 9 Aug 2010 06:49
Parse a Date From a String
Help!! I get a float when I try to parse a date from a string. The date from the string is in the format "Thu Aug 05 15:00:36 2010" I try date_var="Thu Aug 05 15:00:36 2010" date_var.strptime("%a %b %d %I:%M:%S %Y") but I get a floating point variable -- Posted via http://www.ruby-forum.com/. ... 7 Aug 2010 11:28
regular expression negate a word (not character)
Hi all, I know this is an old post, but was trying to do something similar and came up with this: ((?=.*snow\s*tire.*)|^.*tire.*$) Does that meet the required need? If it's full line matches you're looking for, I think it should do the trick. -- Posted via http://www.ruby-forum.com/. ... 6 Aug 2010 06:04
lt operator on class object, checking a class' superclasses
Hi! Do you know a good way to check whether a class is a subclass of a certain class (given the class object, not an instance)? one way would be to check all of klass.superclass, klass.superclass.superclass till nil or klass.new.is_a?( cklass ) Accidentaly, I tried to such a operation: klass < cklass ... 6 Aug 2010 10:26
Connecting to SQL Server 2005
I need to connect to SQL server 2005 using Ruby. I went through some posts but did not found much help. It would be great if anyone can help me with this. -- Posted via http://www.ruby-forum.com/. ... 6 Aug 2010 09:20
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21