class Octopress::Social::Twitter::Tweet
Public Class Methods
new(tag, input, tokens)
click to toggle source
Calls superclass method
# File lib/octopress-social/twitter.rb, line 115 def initialize(tag, input, tokens) super @tag = tag.strip @input = input.strip end
Public Instance Methods
render(context)
click to toggle source
Calls superclass method
# File lib/octopress-social/twitter.rb, line 121 def render(context) content = super(context) site = context['site'] item = context['page'] Octopress::Social::Twitter.tweet(site, item, @input, content).gsub(/(\s{2,}|\n)/, ' ').strip end