Sha256: 1858b5d4aa6592d3bcc031a67cbefc76fd0b0ba505f9a751e49afb333770b56e

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

require 'erb'

class SmashingDocs::TestCase
  attr_reader :request, :response, :created_at, :information, :aside
  attr_accessor :template

  def initialize(request, response, information = {}, aside = '')
    @request, @response, @information, @aside = request, response, information, aside
    @created_at = Time.now
  end

  def compile_template
    ERB.new(template).result binding
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smashing_docs-0.1.0 lib/test_case.rb
smashing_docs-0.0.2 lib/test_case.rb