Class: Example1

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



12
13
14
15
16
17
18
19
20
# File 'lib/div_template.rb', line 12

def div_str
    %Q{
      <div id="example1">
        <div id="twitter" data-url="#{options[:twitter][:url]}" data-text="#{options[:twitter][:text]}" data-title="#{options[:twitter][:title]}"></div>
        <div id="facebook" data-url="#{options[:facebook][:url]}" data-text="#{options[:facebook][:text]}" data-title="#{options[:facebook][:title]}"></div>
        <div id="googleplus" data-url="#{options[:googleplus][:url]}" data-text="#{options[:googleplus][:text]}" data-title="#{options[:googleplus][:title]}"></div>
    </div>
    }.html_safe
end