Class: SocialButtons::Pinit::Scripter
- Inherits:
-
Scripter
- Object
- Scripter
- SocialButtons::Pinit::Scripter
show all
- Defined in:
- lib/social_buttons/view_helpers/pinit.rb
Instance Attribute Summary
Attributes inherited from Scripter
#caller, #options
Instance Method Summary
collapse
Methods inherited from Scripter
#initialize
Instance Method Details
#pinit_js ⇒ Object
43
44
45
|
# File 'lib/social_buttons/view_helpers/pinit.rb', line 43
def pinit_js
"https://assets.pinterest.com/js/pinit.js"
end
|
#script ⇒ Object
37
38
39
40
41
|
# File 'lib/social_buttons/view_helpers/pinit.rb', line 37
def script
return empty_content if widgetized? :pinit
widgetized! :pinit
"<script src=#{pinit_js} type='text/javascript'></script>".html_safe
end
|