Class: Stumb::StampSheet
- Inherits:
-
Object
- Object
- Stumb::StampSheet
- Defined in:
- lib/stumb/stamp_sheet.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(stub) ⇒ StampSheet
constructor
A new instance of StampSheet.
Constructor Details
#initialize(stub) ⇒ StampSheet
Returns a new instance of StampSheet.
6 7 8 |
# File 'lib/stumb/stamp_sheet.rb', line 6 def initialize(stub) @stub = stub end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 |
# File 'lib/stumb/stamp_sheet.rb', line 10 def call(env) [200, {"Content-Type" => "text/html"}, template.render(@stub)] end |