Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 474a85431a
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (25 sloc) 0.486 kb
require 'rubygems'
require 'ruby_gntp'
module Kernel
def g(*args)
messages = args.dup
if messages.empty?
if block_given?
messages << yield(self)
else
messages << self
end
end
messages.each do |i|
text = i.is_a?(String) ? i : i.pretty_inspect
GNTP.notify :app_name => $0, :title => 'g', :text => text
end
if args.empty?
self
elsif args.size == 1
args.first
else
args
end
end
end
Jump to Line
Something went wrong with that request. Please try again.