First  |  Prev |  Next  |  Last
Pages: 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
thanks
Thanks Roger for the doc site. I didn't know the second arg was flags, 0 worked. Thanks again. ... 16 Dec 2009 20:12
Split Module to multiple Files?
Martin Boese wrote: You can do: == myModule.rb module MyModule eval File.open('test1.rb').read eval File.open('test2.rb').read end But this would be ugly, the better way IMO is to define the classes individually within modules: == test.rb: module MyModule class ... 16 Dec 2009 19:05
meta-programming
I am just starting to expand my Ruby knowledge into the area of meta-programming. I want to be able to create a class dynamically. Lets call it, class Person, and then I want to add methods to it dynamically. From a static point I have managed to compile the following example: class Person def self.e... 15 Dec 2009 07:51
How to write this correctly?
Hi, In python this is right: "Hello, %s %s" %("Matz!","again") 'Hello, Matz! again' But in ruby it will get wrong: "Hello, %s %s" %("Matz!","again") SyntaxError: (irb):39: syntax error, unexpected ',', expecting ')' "Hello, %s %s" %("Matz!","again") ^ from /usr/bi... 14 Dec 2009 09:52
Using roo to avoid need for Excel to be installed
I have installed rubyzip and roo gems to bypass the need to have excel installed when reading excel workbooks. When I do in irb require 'zip/zipfilesystem' require 'roo' I get error C:/Ruby/lib/ruby/gems/1.8/gems/nokogiri-1.4.0-x86-mswin32/lib/nokogiri/xml/build er.rb:272: warning: parenthesize argument(s)... 14 Dec 2009 05:31
invalid gem format
I'm having some issues installing gems such as Thin. Please see debug below: XXXXX(a)laptop:~$ sudo gem install sup --debug -V Exception `NameError' at /usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uninitialized constant Gem::Commands::InstallCommand Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.... 9 Dec 2009 17:45
Using OCRA, FXRuby and pdf-writer problem
Hello all, I made a simple salary calculator as practice using FXRuby, OCRA to create an .exe file and pdf-writer to generate a small "report" with the results of the calculation. The program runs fine when run with the ruby interpreter, although I get some warnings: C:/Ruby/lib/ruby/gems/1.8/gems/pdf-write... 9 Dec 2009 09:54
rsruby gem
Does anybody have rsruby gem running on snow leopard? to get rsruby working, you need to install R with --enable-R-shlib. So you need to install from source. When I try that I find that mac os x cannot compile fortran code. To do so, I tried installing gfortran. Then reinstalling R, but R still cannot compile its f... 6 Dec 2009 08:26
Ruby 1.9.1 gem command - can't find user for 500
Has anyone else encountered this error or can suggest a way to correct it? These errors occur when running the gem command under ruby 1.9.1. The same error occurs with a different user #(0) when run as root. Under 1.8.6 and 1.8.7, no error occurs. This is a fresh version of ruby built on a 64 bit machine OS: Li... 3 Dec 2009 14:50
ruby-1.9.1: require 'rio' fails
[Note: parts of this message were removed to make it a legal post.] Morning Wybo, On Thu, Dec 3, 2009 at 3:55 AM, Wybo Dekker <wybo(a)servalys.nl> wrote: Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I get: You can use my fork at http://github.com/wishdev/rio to get a 1.9 complian... 3 Dec 2009 15:58
First  |  Prev |  Next  |  Last
Pages: 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187