Class: Tilt::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/any_view/tilt_base.rb

Instance Method Summary collapse

Instance Method Details

#render_with_any_view(scope = Object.new, locals = {}, &blk) ⇒ Object Also known as: render



4
5
6
7
# File 'lib/any_view/tilt_base.rb', line 4

def render_with_any_view(scope=Object.new, locals = {}, &blk)
  scope.template_type = self.class if scope.respond_to?(:template_type=)
  render_without_any_view(scope, locals, &blk)
end