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



139
140
141
# File 'lib/action_view/component/base.rb', line 139

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

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



137
138
139
# File 'lib/action_view/component/base.rb', line 137

def source
  @source
end

Instance Method Details

#identifierObject



143
144
145
# File 'lib/action_view/component/base.rb', line 143

def identifier
  ""
end

#typeObject

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



148
149
150
# File 'lib/action_view/component/base.rb', line 148

def type
  "text/html"
end