lib/shack/stamp.rb
# body - original body
# content - gets added to view
# options - Either a hash or a Configuration instance
original body
content - gets added to view
options - Either a hash or a Configuration instance
original body content - gets added to view options - Either a hash or a Configuration instance
def result
      return @body unless @body.include?("</body>")
      if @body.include?("</head>")
        @body.gsub!("</head>", style_block + "</head>")
      else
        @body.gsub!("</body>", style_block + "</body>")
      end
      @body.gsub!("</body>", html + "</body>")
      @body
    end
def result return @body unless @body . include? ( "</body>" ) if @body . include? ( "</head>" ) @body . gsub! ( "</head>" , style_block + "</head>" ) else @body . gsub! ( "</body>" , style_block + "</body>" ) end @body . gsub! ( "</body>" , html + "</body>" ) @body end
body - original body
content - gets added to view
options - Either a hash or a Configuration instance
body - original body content - gets added to view options - Either a hash or a Configuration instance