Class: ActionView::Component::Base::DummyTemplate
- Inherits:
-
Object
- Object
- ActionView::Component::Base::DummyTemplate
- Defined in:
- lib/action_view/component/base.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(source = nil) ⇒ DummyTemplate
constructor
A new instance of DummyTemplate.
-
#type ⇒ Object
we’ll eventually want to update this to support other types.
Constructor Details
#initialize(source = nil) ⇒ DummyTemplate
Returns a new instance of DummyTemplate.
221 222 223 |
# File 'lib/action_view/component/base.rb', line 221 def initialize(source = nil) @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
219 220 221 |
# File 'lib/action_view/component/base.rb', line 219 def source @source end |
Instance Method Details
#identifier ⇒ Object
225 226 227 |
# File 'lib/action_view/component/base.rb', line 225 def identifier "" end |
#type ⇒ Object
we’ll eventually want to update this to support other types
230 231 232 |
# File 'lib/action_view/component/base.rb', line 230 def type "text/html" end |