Sha256: 8b5536bcc431ab942deec0c095dfbaa3caa1ab49e285ef7e9a07e58bf354578a
Contents?: true
Size: 361 Bytes
Versions: 10
Compression:
Stored size: 361 Bytes
Contents
require 'erb' class SmashingDocs::TestCase attr_reader :request, :response, :created_at, :information attr_accessor :template def initialize(request, response, information = {}) @request, @response, @information = request, response, information @created_at = Time.now end def compile_template ERB.new(template).result binding end end
Version data entries
10 entries across 10 versions & 1 rubygems