class Teaspoon::Formatter::RspecHtml::Template
Public Class Methods
new(contents)
click to toggle source
# File lib/teaspoon/formatter/rspec_html.rb, line 61 def initialize(contents) @template = contents end
Public Instance Methods
render(obj)
click to toggle source
# File lib/teaspoon/formatter/rspec_html.rb, line 65 def render(obj) @o = obj ERB.new(@template).result binding end