Class: SocialButtons::Tweet::Scripter

Inherits:
Scripter
  • Object
show all
Defined in:
lib/social_buttons/view_helpers/tweet.rb

Instance Attribute Summary

Attributes inherited from Scripter

#caller, #options

Instance Method Summary collapse

Methods inherited from Scripter

#initialize

Constructor Details

This class inherits a constructor from SocialButtons::Scripter

Instance Method Details

#scriptObject



39
40
41
42
43
# File 'lib/social_buttons/view_helpers/tweet.rb', line 39

def script
  return empty_content if widgetized? :tweet
  widgetized! :tweet
  "<script src=#{twitter_wjs} type='text/javascript'></script>".html_safe
end

#twitter_wjsObject



45
46
47
# File 'lib/social_buttons/view_helpers/tweet.rb', line 45

def twitter_wjs 
  "https://platform.twitter.com/widgets.js"
end