Permalink
Browse files

use extend(self) instead of module_function

Old versions of YARD struggle with @option tags in module_function,
lsegal/yard#563
  • Loading branch information...
1 parent b691c25 commit 652a0895eb1f2b08767e2305697636206f7892e8 @rking rking committed with rking@sharpsaw.org Aug 7, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/jist.rb
View
@@ -4,6 +4,7 @@
# It just gists.
module Jist
+ extend self
VERSION = '0.9.2'
@@ -13,7 +14,6 @@ module Jist
# Exception tag for errors raised while gisting.
module Error; end
- module_function
# Upload a gist to https://gist.github.com
#
# @param [String] content the code you'd like to gist
@@ -158,8 +158,6 @@ def http(request)
raise "Could not connect to https://api.github.com/"
end
- module_function
-
# Called after an HTTP response to gist to perform post-processing.
#
# @param [String] body the HTTP-200 response

0 comments on commit 652a089

Please sign in to comment.