Class: Vident::Phlex::HTML
- Includes:
- Component
- Defined in:
- lib/vident/phlex/html.rb
Class Method Summary collapse
-
.attribute(name, **options) ⇒ Object
Phlex uses a DSL to define the document, and those methods could easily clash with our attribute accessors.
Methods inherited from Core
current_component_modified_time, inherited, #parent_element
Class Method Details
.attribute(name, **options) ⇒ Object
Phlex uses a DSL to define the document, and those methods could easily clash with our attribute accessors. Therefore in Phlex components we do not create attribute accessors, and instead use instance variables directly.
12 13 14 15 |
# File 'lib/vident/phlex/html.rb', line 12 def attribute(name, **) [:delegates] = false super end |