class Octopress::Social::GooglePlus::Tag
Public Class Methods
new(tag, input, tokens)
click to toggle source
# File lib/octopress-social/google-plus.rb, line 101 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/google-plus.rb, line 106 def render(context) item = Octopress::Social.item(context, @input) site = context['site'] Octopress::Social::GooglePlus.config(site) Octopress::Social::GooglePlus.send(@tag, site, item).gsub(/(\s{2,}|\n)/, ' ').strip end