Class: Example2

Inherits:
DivTemplate show all
Defined in:
lib/div_template.rb

Instance Attribute Summary

Attributes inherited from DivTemplate

#options

Instance Method Summary collapse

Methods inherited from DivTemplate

#initialize

Constructor Details

This class inherits a constructor from DivTemplate

Instance Method Details

#div_strObject



24
25
26
27
28
29
30
# File 'lib/div_template.rb', line 24

def div_str
  %Q{
    <div id="#{options[:div_template]}">
      <div id="shareme" data-url="#{options[:url]}" data-text="#{options[:text]}"></div>
    </div>
  }.html_safe
end