Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed to return original args.

  • Loading branch information...
commit 90c5972ac4ca782f3ffbb3ab1ea925a7a5e1343c 1 parent 7518277
@jugyo authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/g.rb
View
8 lib/g.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.