Class: SocialButtons::Scripter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {}
  @caller = caller
  @options = options
end

Instance Attribute Details

#callerObject

Returns the value of attribute caller.



3
4
5
# File 'lib/social_buttons/view_helpers/scripter.rb', line 3

def caller
  @caller
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/social_buttons/view_helpers/scripter.rb', line 3

def options
  @options
end

Instance Method Details

#script(lang = nil) ⇒ Object

Raises:

  • (NotImplementedError)


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