Fora / Ruby

Special compare of Ruby Time objects (0 replies) , last by gmosx.myopenid.com, Mon, 21 May 2007 12:08:48 GMT
gmosx.myope: Dear devs, is there an elegant way to find out if two Time objects represent the same day, ie ignore the hh:mm:ss part of the Time object in this comparisson? thanks in advance, -g.
Extract main part of domain (0 replies) , last by gmosx.myopenid.com, Mon, 14 May 2007 06:20:25 GMT
gmosx.myope: < I am wondering if anyone has an elegant solution to this problem: I want to extact the 'main' part of a domain, for example: www.nitro.com ->< localhost:8000 ->< gmosx.nitro.com -> nitro.com If someone can provide an ..
Object to xml library. (0 replies) , last by gmosx.myopenid.com, Sat, 24 Mar 2007 17:02:11 GMT
gmosx.myope: Dear devs, I am looking for a ruby library that given: class User attr_accessor :name, :age end u = User.new u.name = "gmosx" u.age = 32 u.to_xml would generate: gmosx 32 does something like this exist? regards,..
Ruby meta programming problem (0 replies) , last by gmosx.myopenid.com, Mon, 19 Mar 2007 09:53:02 GMT
gmosx.myope: I am using the following code to generate some utility methods: < class User::Proxy attr_accessor :oid attr_accessor :name attr_accessor :level for key, val in User::LEVEL_VALUES define_method("#{val}?") do @level >= key end ..
  Subscribe to Ruby