I was talking to the Dallas Ruby group a couple of days ago, and showed them the following code:

class Fred
  class << self
    def self.say_hello
      puts "Hi!"
    end
  end
end

Someone asked whether it was possible to call the say_hello method. It is. How many ways can you find?

Please keep it clean, respectful, and relevant. I reserve the right to remove comments I don't feel belong.
  • NickName, E-Mail, and Website are optional. If you supply an e-mail, we'll notify you of activity on this thread.
  • You can use Markdown in your comment (and preview it using the magnifying glass icon in the bottom toolbar).