Module: Assert::View::Renderer
- Included in:
- Base
- Defined in:
- lib/assert/view/base.rb
Overview
this module is mixed in to the Assert::View::Base class
Defined Under Namespace
Modules: ClassMethods Classes: Template
Class Method Summary collapse
Instance Method Summary collapse
-
#render(*args, &runner_callback) ⇒ Object
this method is required by assert and is called by the test runner render the template using the view’s template file streaming to the view’s output io passing in the view itself and any runner_callback as locals.
Class Method Details
.included(receiver) ⇒ Object
9 10 11 |
# File 'lib/assert/view/base.rb', line 9 def self.included(receiver) receiver.send(:extend, ClassMethods) end |
Instance Method Details
#render(*args, &runner_callback) ⇒ Object
this method is required by assert and is called by the test runner render the template using the view’s template file streaming to the view’s output io passing in the view itself and any runner_callback as locals
45 46 47 48 49 50 |
# File 'lib/assert/view/base.rb', line 45 def render(*args, &runner_callback) Template.new(self.class.template, { :view => self, :runner => runner_callback }, self.output_io) end |