Permalink
Browse files

Changed to return original args.

  • Loading branch information...
1 parent 7518277 commit 90c5972ac4ca782f3ffbb3ab1ea925a7a5e1343c @jugyo committed May 23, 2009
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/g.rb
View
@@ -6,6 +6,12 @@ module Kernel
GROWL = Growl.new "localhost", $0, ["Kernel.g"]
def g(*args)
args.each { |i| GROWL.notify "Kernel.g", $0, i.pretty_inspect }
- nil
+ if args.empty?
+ nil
+ elsif args.size == 1
+ args.first
+ else
+ args
+ end
end
end

0 comments on commit 90c5972

Please sign in to comment.