box-o-sand/why/metaid/attr_abort.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

10 lines
151 B
Ruby

class Class
def attr_abort(*args)
abort "Please no more attributes today."
end
end
class MyNewClass
attr_abort :id, :diagram, :telegram
end