Class: ActionView::Template::HTML
- Inherits:
 - 
      Object
      
        
- Object
 - ActionView::Template::HTML
 
 
- Defined in:
 - lib/action_view/template/html.rb
 
Overview
:nodoc:
Instance Attribute Summary collapse
- 
  
    
      #type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
:nodoc:.
 
Instance Method Summary collapse
- #format ⇒ Object
 - #identifier ⇒ Object (also: #inspect)
 - 
  
    
      #initialize(string, type)  ⇒ HTML 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of HTML.
 - #render(*args) ⇒ Object
 - #to_str ⇒ Object
 
Constructor Details
#initialize(string, type) ⇒ HTML
Returns a new instance of HTML.
      9 10 11 12  | 
    
      # File 'lib/action_view/template/html.rb', line 9 def initialize(string, type) @string = string.to_s @type = type end  | 
  
Instance Attribute Details
#type ⇒ Object (readonly)
:nodoc:
      7 8 9  | 
    
      # File 'lib/action_view/template/html.rb', line 7 def type @type end  | 
  
Instance Method Details
#format ⇒ Object
      28 29 30  | 
    
      # File 'lib/action_view/template/html.rb', line 28 def format @type end  | 
  
#identifier ⇒ Object Also known as: inspect
      14 15 16  | 
    
      # File 'lib/action_view/template/html.rb', line 14 def identifier "html template" end  | 
  
#render(*args) ⇒ Object
      24 25 26  | 
    
      # File 'lib/action_view/template/html.rb', line 24 def render(*args) to_str end  | 
  
#to_str ⇒ Object
      20 21 22  | 
    
      # File 'lib/action_view/template/html.rb', line 20 def to_str ERB::Util.h(@string) end  |