box-o-sand/why/metaid/mail_truck.rb
Dan Buch e1a07fadd9 Working through an old @why post on metaprogramming
since I'd like to make the JRuby rabbitmq stuff a bit less boilerplate.
2012-12-02 20:21:14 -05:00

16 lines
230 B
Ruby

require_relative 'metaid'
class MailTruck
attr_accessor :driver, :route
def initialize(driver, route)
@driver, @route = driver, route
end
def self.company(name)
meta_def :company do
name
end
end
end