123456789_123456789_123456789_123456789_123456789_

Class: ActionView::Template::HTML

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/template/html.rb

Overview

Action View HTML Template

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(string, type) ⇒ HTML

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 9

def initialize(string, type)
  @string = string.to_s
  @type   = type
end

Instance Attribute Details

#type (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 7

attr_reader :type

Instance Method Details

#format

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 28

def format
  @type
end

#identifier Also known as: #inspect

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 14

def identifier
  "html template"
end

#inspect

Alias for #identifier.

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 18

alias_method :inspect, :identifier

#render(*args)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 24

def render(*args)
  to_str
end

#to_str

[ GitHub ]

  
# File 'actionview/lib/action_view/template/html.rb', line 20

def to_str
  ERB::Util.h(@string)
end