Class: SocialButtons::Scripter
- Inherits:
-
Object
- Object
- SocialButtons::Scripter
- Defined in:
- lib/social_buttons/view_helpers/scripter.rb
Direct Known Subclasses
GooglePlus::AsyncScripter, GooglePlus::Scripter, Like::Scripter, Pinit::Scripter, Tweet::Scripter, Vkontakte::Scripter
Instance Attribute Summary collapse
-
#caller ⇒ Object
Returns the value of attribute caller.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(caller, options = {}) ⇒ Scripter
constructor
A new instance of Scripter.
- #script(lang = nil) ⇒ Object
Constructor Details
#initialize(caller, options = {}) ⇒ Scripter
Returns a new instance of Scripter.
5 6 7 8 |
# File 'lib/social_buttons/view_helpers/scripter.rb', line 5 def initialize caller, = {} @caller = caller @options = end |
Instance Attribute Details
#caller ⇒ Object
Returns the value of attribute caller.
3 4 5 |
# File 'lib/social_buttons/view_helpers/scripter.rb', line 3 def caller @caller end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/social_buttons/view_helpers/scripter.rb', line 3 def @options end |
Instance Method Details
#script(lang = nil) ⇒ Object
10 11 12 |
# File 'lib/social_buttons/view_helpers/scripter.rb', line 10 def script lang = nil raise NotImplementedError, "Must be implemented by subclass" end |