123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(string) ⇒ Text

[ GitHub ]

  
# 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.

[ GitHub ]

  
# 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