Hey everyone, I'm very new to Ruby and I'm starting to do a bit more
hands-on practice... So I decided to make an attempt at making a small
bit of code, but when I run it, nothing happens... Can someone please
explain why?...

Here is what I have so far:



class RoboEngine

  def initialize
   puts "Initializing..."
   Init.action1
  end

end

class Initialization

  def action1
    puts "Initialized!"
    sleep(0.3)
    puts "Loading Thought Process..."
  end
end

Init = Initialization.new




So why is it that when I run this, nothing happens? Nothing is
printed...

-- 
Posted via http://www.ruby-forum.com/.