Class: SocialButtons::Tweet::Scripter
- Inherits:
-
Scripter
- Object
- Scripter
- SocialButtons::Tweet::Scripter
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
Instance Method Details
#script ⇒ Object
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=#{} type='text/javascript'></script>".html_safe
end
|
45
46
47
|
# File 'lib/social_buttons/view_helpers/tweet.rb', line 45
def
"https://platform.twitter.com/widgets.js"
end
|