lib/reflex/reflex.rb in reflexion-0.1.12 vs lib/reflex/reflex.rb in reflexion-0.1.13
- old
+ new
@@ -17,12 +17,10 @@
def quit ()
Application.instance.quit
end
def window (*args, &block)
- w = Window.new *args, &block
- w.show
- w
+ Window.new(*args, &block).tap {|w| w.show}
end
self
end# ClassMethods