Desk2Mob

Desk2Mob

Desk2Mob

I tried it in Ubuntu 14.04.2 LTS, and it is working fine

Step 1: (the purpose of the first line in designating which interpreter to use for the rest of the file), and save the file as a hello-world.rb

#!/usr/bin/env ruby
puts "Hello World!"

Step 2: (make the file executable with the below command)

chmod u+x... 
Posted on October 26, 2015 by Amit Pandya in Ubuntu, Ruby

Ruby - String Class

Posted on February 21, 2014 by Amit Pandya in Ruby - String-Class, Ruby

In Ruby 2.4.0, the Fixnum and Bignum classes were merged into Integer, resolving a long-standing issue.

  • Fixnum for small integers (range depends on implementation, usually limited to machine word size)
  • Bignum for larger integers (arbitrary precision)

Let’s see this in action.

Ruby 2.3.3

<code class="h... 
Posted on January 04, 2017 by Amit Pandya in Ruby