Class: ActionView::Component::Base::DummyTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/component/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source = nil) ⇒ DummyTemplate

Returns a new instance of DummyTemplate.



165
166
167
# File 'lib/action_view/component/base.rb', line 165

def initialize(source = nil)
  @source = source
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



163
164
165
# File 'lib/action_view/component/base.rb', line 163

def source
  @source
end

Instance Method Details

#identifierObject



169
170
171
# File 'lib/action_view/component/base.rb', line 169

def identifier
  ""
end

#typeObject

we’ll eventually want to update this to support other types



174
175
176
# File 'lib/action_view/component/base.rb', line 174

def type
  "text/html"
end