From: eagle eyes joe Date: 2004-09-24T04:54:34+09:00 Subject: mixin with A::B syntax Greetings, I want to define a generic print method to use in debugging. I got the mix in syntax okay for classes like Hash or String, but for Mysql::Result, it doesn't seem to work. What would the proper syntax be? Joe Alotta #!/usr/bin/ruby require 'mysql' class Mysql::Result def print self.each_hash do |i| i.each do |k, v| { print "#{k} = #{v} "} puts end end end m = Mysql.new("localhost", "root", "", "Development") s = m.query("select * from symbols where type = 'MU'") s.print Joe Alotta