Class: ActionView::InlineTemplate

Inherits:
Object
  • Object
show all
Includes:
Renderable
Defined in:
lib/action_view/inline_template.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Renderable

#compiled_source, #filename, #handler, included, #method_name, #render

Constructor Details

#initialize(source, type = nil) ⇒ InlineTemplate

Returns a new instance of InlineTemplate.


7
8
9
10
11
# File 'lib/action_view/inline_template.rb', line 7

def initialize(source, type = nil)
  @source = source
  @extension = type
  @method_segment = "inline_#{@source.hash.abs}"
end

Instance Attribute Details

#extensionObject (readonly)

Returns the value of attribute extension


5
6
7
# File 'lib/action_view/inline_template.rb', line 5

def extension
  @extension
end

#method_segmentObject (readonly)

Returns the value of attribute method_segment


5
6
7
# File 'lib/action_view/inline_template.rb', line 5

def method_segment
  @method_segment
end

#sourceObject (readonly)

Returns the value of attribute source


5
6
7
# File 'lib/action_view/inline_template.rb', line 5

def source
  @source
end