I still am surprised that a modern programming language can have an obscure syntax.
almost everything in Ruby is object based. For example, in Perl, you write for loop like this
in Ruby,
or
There is no using loops here. "Looping" is taken care of by the programming language itself (of course, there are also for loops in Ruby ). If you are accustomed to procedural programming where you use for loops often, this might seem "obscure" at first.
Hello guys,
This is suse SLES 9.2.
I want to get ri working for all users on this system. I used
gem rdoc --all --ri to generate documentation and it went on doing it successfully.
Then I tried
ri Array
It shows following message :
Nothing known about Array
Therefore I ran... (0 Replies)
Hai any one pls guide me...
We can extract the line number of the sub routine/function/method in a Ruby file using the ctags command.
But I want to know the line number in which the sub routine is ending.
Example:
Say the function get_days_in_hash starts in the line number 20.
It... (2 Replies)
Hi,
I am a php developer and I decided to learn ruby on rails.
I have a few question.
I have an ubuntu virtual machine with lamp.
It mean that it has alrweady php and when I access the ip of the machine from my browser it does load the index.php.
if I install ruby on rails will theere... (0 Replies)
Hi,
I am working on RHEL 5.6 server, this is in private DMZ. No access to internet. I have downloaded the files I need to install the Puppet & Ruby. My goal is to install Puppet. I have downloaded....
mcollective-2.2.3-1.el5.noarch- SERVER.rpm ... (2 Replies)
Hello everybody,
May you help with this, I don't know what is wrong.
I want trying to print the first 4 characters as decimal and remove the "k's" from the next 7 characters.
I'm trying with gsub and backrefence as shown below trying to remove the "k's" and then trying to assign to "x" the... (0 Replies)