Class: JekyllGithubSample::ReferenceTag
- Defined in:
- lib/jekyll_github_sample/reference_tag.rb
Constant Summary
Constants included from TextUtils
Instance Method Summary collapse
Methods inherited from CodeTag
Methods included from TextUtils
#extract_tagged_lines, #remove_common_indentation
Constructor Details
This class inherits a constructor from JekyllGithubSample::CodeTag
Instance Method Details
#render(context) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jekyll_github_sample/reference_tag.rb', line 4 def render(context) <<MARKUP.strip <div class="github-sample-reference"> <div class="author-info"> <a href="#{@github_file.web_uri}">This Github Sample</a> is by <a href="#{@github_file.user_uri}">#{@github_file.user}</a> </div> <div class="meta-info"> #{@github_file.filename} <a href="#{@github_file.web_uri}">view</a> <a href="#{@github_file.raw_uri}">raw</a> </div> </div> MARKUP end |