First  |  Prev |  Next  |  Last
Pages: 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
Numbering array values [multidimentional?!]
Hi, I'm very new to Ruby (2 days), I'm mostly used to Python/PHP/C++. What would be ideal would be a multidimensional array however from what I have read Ruby does not support multidimensional arrays. I want to be able to store data within multiple arrays and have the values in all of the arrays linked togethe... 10 Jun 2010 19:02
rdoc-data 2.5.1 Released
rdoc-data contains ri information for Ruby 1.8.6, 1.8.7 and 1.9.1. As a note, I see that rdoc-data's gemspec file is 1.4M This takes quite awhile to load. You may want to consider something other distribution mechanism. -r -- Posted via http://www.ruby-forum.com/. ... 10 Jun 2010 13:23
Question about testing self.inherited
Hi, I have a class that keeps track of its subclasses using the self.inherited hook: module GameFramework class Game attr_accessor :event_handler @available_games = [] class << self attr_reader :available_games end def self.inherited subclass @available_games << sub... 10 Jun 2010 13:23
RVM Snow Leopard
I just put in a new disk and I would like to install rvm in /usr/local/rvm. On my old disk I was able to do this by installing ruby 1.9.2dev and then installing the rvm gem. The install script in rvm want to put it in my home directory. I did install it there and then did a mv .rvm /usr/local/rvm and got it over ... 10 Jun 2010 15:40
How to print something with erb?
Hello, I'm having a problem to output things in the write order with erb1.9 and lighttpd . I don't know if it's the normal comportement of erb but this is how it works for me: Content of my ERB file: test{<%= 1 %>2<% puts 3 %>} On my web browser I get this output: 3 test{12} puts or print comes before an... 17 Jun 2010 14:30
right*, not write
*I meant right order, and normal behaviour -- Posted via http://www.ruby-forum.com/. ... 10 Jun 2010 12:15
win32ole excel excelconst disable macros
Hi! I use book = self.excel.Workbooks.Open(file,ExcelConst::XlUpdateLinksNever) to never update links in excel files when opend with ruby. is there an excelconst to disable macros? i can't find anything. Thanks, uwe ... 16 Jun 2010 03:26
Metaprograming
i would like to know which methods are called by the object created by class with in class. If Suppose if particular method is not there it invokes method_missing.But i want it invoke directly my class .so i would like create that method dynamically eg: class Flower def rose puts "rose is beatiful" end end ... 15 Jun 2010 04:20
How to implement fork cocept in ruby
Hi, I need to implement fork concept in my application. I want to do the task1 and task2 at a time. need to start task1 and and task2 at a time but task1 will complete within seconds .but task2 will will take time,it's the long run process.so want to do this seperate process this will not interupt other p... 10 Jun 2010 06:41
Why private #binding?
Why is #binding a private method? I end up doing a lot of this: class Scope def __binding__ binding end end In order to setup a scope for ERB evaluation, among other uses. ... 11 Jun 2010 10:18
First  |  Prev |  Next  |  Last
Pages: 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84