Skip to content

@bricker /keys.rb
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
puts RUBY_VERSION
# "2.0.0"
def parameters(params={}, content_type: "text/html")
puts params
puts content_type
end
parameters({ query: "Ruby" })
# ArgumentError: unknown keyword: query
parameters({ query: "Ruby" }, { content_type: "application/json" })
# {:query=>"Ruby"}
# application/json
parameters({ query: "Ruby" }, {})
# {:query=>"Ruby"}
# text/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.