C
Carl Youngblood
How do I create a class that will allow me to pass a string, for
example, to an instance of it using the << operator? Like this:
#==================================
class Logger
include Singleton
....
end
$logger = Logger.instance
....
$logger << "Here is a log message"
#==================================
Thanks,
Carl
example, to an instance of it using the << operator? Like this:
#==================================
class Logger
include Singleton
....
end
$logger = Logger.instance
....
$logger << "Here is a log message"
#==================================
Thanks,
Carl