class TumblrThemer::Tag
Attributes
data[R]
html[R]
Public Class Methods
new(html, data, index=0)
click to toggle source
# File lib/tumblr-themer/tag.rb, line 5 def initialize html, data, index=0 @html = TumblrThemer::HtmlSnippet.new(html.dup) if html @data = data.dup end
Public Instance Methods
render()
click to toggle source
# File lib/tumblr-themer/tag.rb, line 10 def render self.class.tags.each do |name, blk| html.tag(name,instance_exec(self,&blk)) end html.str end