Skip to content

Instantly share code, notes, and snippets.

@lsegal
Created June 17, 2009 17:25
Show Gist options
  • Save lsegal/131370 to your computer and use it in GitHub Desktop.
Save lsegal/131370 to your computer and use it in GitHub Desktop.
require 'yard'
YARD::Parser::SourceParser.parse_string <<-eof
# ### HELPERS ###
# Generates the base job definition hash
#
# @param [Hash] p The sanitized params sent by the user
# @param [Symbol] verb The job verb (:get, :post, :delete, :put)
# @param [Symbol] type The job type
# @return [Hash] The base job definition
def standard_input(p, type, verb)
{
:hello => "world"
}
end
eof
p P("#standard_input").docstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment