I'm back from a small trip as you probably have noted :). This is just small
thing.
# This is how I made Ruby to eat more beautiful "obj = new Class".
# Far from perfect probably, but works for simple case.
# Don't use parentheses, or use them in C++/Java way anyway :)
def new( klass, *args )
if args.length != 0
klass.new args
else
klass.new
end
end
Any thoughts, comments?
- Aleksi