class Awt::Printer

Attributes

host[RW]

Public Class Methods

new(host) click to toggle source
# File lib/awt/printer.rb, line 5
def initialize(host)
  @host = host
end

Public Instance Methods

method_missing(action, *args) click to toggle source
Calls superclass method
# File lib/awt/printer.rb, line 9
def method_missing(action, *args)
  if action.to_s =~ /print_(.+)/
    puts "[#{@host}] #{$1}: #{args.first}"
  else
    super
  end
end