aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_view/template/text.rb
blob: 927a0d7a72e773e5a8c6fc2fe9b60356d6e519d2 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                      
 




                                                      
                             


                          
                                     

                            

     
module ActionView #:nodoc:
  class TextTemplate < String #:nodoc:

    def initialize(string, content_type = Mime[:html])
      super(string)
      @content_type = Mime[content_type]
    end

    def identifier() self end
    
    def render(*) self end
    
    def mime_type() @content_type end
      
    def partial?() false end
  end
end