Class: Magicka::Element
- Inherits:
-
Sinclair::Options
- Object
- Sinclair::Options
- Magicka::Element
- Extended by:
- ClassMethods
- Defined in:
- lib/magicka/element.rb,
lib/magicka/element/class_methods.rb
Overview
Base class for element rendering
Direct Known Subclasses
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#render ⇒ Object
Render element HTML.
-
#with_attributes ⇒ Array
Adds attribute.
Methods included from ClassMethods
template, with_attribute_locals, with_locals
Instance Method Details
#render ⇒ Object
Render element HTML
29 30 31 |
# File 'lib/magicka/element.rb', line 29 def render renderer.render partial: template, locals: locals end |
#with_attributes ⇒ Array
Adds attribute
This will affect initialization and add readers
|
|
# File 'lib/magicka/element.rb', line 18
|