Module: Octokit::Client::Markdown
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/markdown.rb
Instance Method Summary collapse
-
#markdown(text, options = {}) ⇒ String
Receive the default Readme for a repository.
Instance Method Details
#markdown(text, options = {}) ⇒ String
Receive the default Readme for a repository
14 15 16 17 18 |
# File 'lib/octokit/client/markdown.rb', line 14 def markdown(text, ={}) [:text] = text [:repo] = Repository.new([:repo]) if [:repo] post("markdown", , 3, true, true).body end |