Class: Shareable::Helpers::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/shareable/helpers/tags.rb

Direct Known Subclasses

SocialButtons, Socialize

Instance Method Summary collapse

Constructor Details

#initialize(template, options = {}) ⇒ Tag

:nodoc:


5
6
7
# File 'lib/shareable/helpers/tags.rb', line 5

def initialize(template, options = {}) #:nodoc:
  @template, @options = template, options.dup
end

Instance Method Details

#to_s(locals = {}) ⇒ Object

:nodoc:


9
10
11
# File 'lib/shareable/helpers/tags.rb', line 9

def to_s(locals = {}) #:nodoc:
  @template.render :partial => "shareable/#{self.class.name.demodulize.underscore}", :locals => @options.merge(locals)
end