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

                                          

                                                         
 


                            
 
                                                                        
       
 


                  

     
module ActionView #:nodoc:
  class InlineTemplate < Template #:nodoc:
    def initialize(view, source, locals = {}, type = nil)
      @view = view

      @source = source
      @extension = type
      @locals = locals || {}

      @handler = Base.handler_class_for_extension(@extension).new(@view)
    end

    def method_key
      @source
    end
  end
end