class Octopress::Social::GitHub::Tag
Public Class Methods
new(tag, input, tokens)
click to toggle source
# File lib/octopress-social/github.rb, line 51 def initialize(tag, input, tokens) @tag = tag.strip @input = input.strip end
Public Instance Methods
render(context)
click to toggle source
# File lib/octopress-social/github.rb, line 56 def render(context) Octopress::Social::GitHub.set_config(context['site']) Octopress::Social::GitHub.send(@tag).gsub(/(\s{2,}|\n)/, ' ').strip end