ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Ruby/Tk Primer: Creating a cron GUI Interface with Ruby/Tk
Subject:   Using Ruby
Date:   2004-06-28 09:08:26
From:   r.boylan

Interesting article after I figured out that you have to use Unix line endings of newline (\n) for the Ruby processor. I use the BBEdit text editor and had changed line endings to return (\r) for AppleScript and web pages.


I did still have trouble prefixing the 'Hello, World!' example with "self." per your explanation. Nothing I tried got past the following error:


firstprogram.rb:1: private method `puts' called for #<Object:0xd2cd8> (NameError)

I tried both "self.puts" and "self.print" but they both produce the same error (with the obvious method name change). Any ideas or hints?


1 to 2 of 2
  1. self.puts
    2004-06-28 18:06:54  aturley [View]

  2. Using Ruby
    2004-06-28 11:24:35  Christopher Roach | O'Reilly Blogger [View]

1 to 2 of 2