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

                                                         
 


                            
 
                                                
                                                                            
       

           
                                  
                   
         

     
module ActionView #:nodoc:
  class InlineTemplate #:nodoc:
    include Renderable

    def initialize(view, source, locals = {}, type = nil)
      @view = view

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

      @method_key = "inline_#{@source.hash.abs}"
      @handler = Template.handler_class_for_extension(@extension).new(@view)
    end

    private
      def method_name_path_segment
        @method_key
      end
  end
end