Class: Mack::Rendering::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/rendering/classes/text.rb

Overview

Used when someone calls render(:text => “Hello World!”)

Instance Attribute Summary

Attributes inherited from Base

#options, #view_binder

Instance Method Summary collapse

Methods inherited from Base

#initialize, #params

Constructor Details

This class inherits a constructor from Mack::Rendering::Base

Instance Method Details

#renderObject



6
7
8
# File 'lib/rendering/classes/text.rb', line 6

def render
  Mack::ViewBinder.render(options[:text], self.view_binder.controller, options)
end