class MyObject
  def class
  end
  def type
  end
  def hello
   puts "HELLO!"
  end
end

a = MyObject.new

Question: How to determine type of 'a' object?