Class: ActionView::Template::Text
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionview/lib/action_view/template/text.rb |
Overview
Action View Text Template
Class Method Summary
- .new(string) ⇒ Text constructor
Instance Attribute Summary
- #type rw
Instance Method Summary
- #format
- #identifier (also: #inspect)
-
#inspect
Alias for #identifier.
- #render(*args)
- #to_str
Constructor Details
.new(string) ⇒ Text
# File 'actionview/lib/action_view/template/text.rb', line 9
def initialize(string) @string = string.to_s end
Instance Attribute Details
#type (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/text.rb', line 7
attr_accessor :type
Instance Method Details
#format
[ GitHub ]# File 'actionview/lib/action_view/template/text.rb', line 27
def format :text end
#identifier Also known as: #inspect
[ GitHub ]# File 'actionview/lib/action_view/template/text.rb', line 13
def identifier "text template" end
#inspect
Alias for #identifier.
# File 'actionview/lib/action_view/template/text.rb', line 17
alias_method :inspect, :identifier
#render(*args)
[ GitHub ]# File 'actionview/lib/action_view/template/text.rb', line 23
def render(*args) to_str end
#to_str
[ GitHub ]# File 'actionview/lib/action_view/template/text.rb', line 19
def to_str @string end