First  |  Prev |  Next  |  Last
Pages: 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
instance_eval or class_eval on metaclass?
I was looking at someone's implementation of #meta_eval and I noticed they used #instance_eval. I've always been using #class_eval with metaclasses and getting my desired effect. So why use #instance_eval over #class_eval when working with metaclasses? Furthermore, I can't even tell a difference, as demonstrate... 14 Jul 2008 21:57
[QUIZ] Symbolify (#169)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Quiz 2: 1. Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. 2. Support Ruby Quiz 2 by submitting ideas as often as you can! (A permanen... 11 Jul 2008 11:59
gem update
Hi, I'm behind a firewall. How can I update ruby modules? If I try to do a gem update --system I get the following error: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) getaddrinfo: no address associated with hostname.(SocketError) PS: Windows XP SP3 - Ruby 1.8.6 Thanks! ... 11 Jul 2008 14:03
Unescape xml element content
Is there a way to unescape this string? <name>L&#xE4;tt B bed. Tv&#xE5; omg&#xE5;ngar A:0 och A:0</name> -- Posted via http://www.ruby-forum.com/. ... 11 Jul 2008 11:59
Beginner: if statement in one line?
Hi, a simple question, however I did not find an answer for this: How can I put a statement like if 5 == 5 puts '5' end in one line? Just writing them all statements together in one line didn't work, and a syntax like if 5 == 5 {puts '5'} end didn't either. Thanks for your help. CHeers, CHris... 12 Jul 2008 20:44
ANNOUNCE: Rucola 0.5 released
Hi, I've just released Rucola 0.5 Rucola is a light weight framework that helps you write RubyCocoa apps. It allows you to build, test, and deploy applications using rake commands, eliminating the need to use XCode for the most common tasks. Rucola provides a set of generators to help you generate control... 11 Jul 2008 13:01
Trying to write a first plain ruby script
In irb, the method "one\ntwo\nthree".split worked fine but in a file.. ------------------------------- @text = " line one line two line three " @lines = @text.split(/\n/) ------------------------------- .. it fails: "private method `split' called for nil:NilClass (NoMethodError)" After getting th... 11 Jul 2008 14:03
ruby extension for qt
Dear all, I am planning to write 'ruby extension for accessing qt classes'( I dont want to use the existing "qtruby" ). if anyone having idea regarding this, please help me. Thanks in advance. regards. -- Posted via http://www.ruby-forum.com/. ... 11 Jul 2008 05:50
MS SQL 2005 Express and MySQL on Windows
The short question: Has anybody successfully connected to both MS SQL 2005 Express and MySQL databases using Ruby on Windows XP? How? The long description: My company's point-of-sale system uses MS SQL. A recent upgrade to the software required an upgrade of the database. I was using ruby on ubuntu with DBI to s... 11 Jul 2008 14:03
Got my redirect to work... something.cgi
require "#{ScriptLib}/CGIUtils.rb" if $CGIo.has_key?('user_name') and $CGIo['user_name'] != '' then # ## Add call to CVS Access validation here eventually. # un = $CGIo['user_name'] cookie = CGI::Cookie.new('user_name', $CGIo['user_name']) STDERR.puts "trace cookie: #{cookie.... 10 Jul 2008 22:41
First  |  Prev |  Next  |  Last
Pages: 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290