Class: Vident::Typed::Phlex::HTML
- Inherits:
-
Phlex::Core
- Object
- Phlex::Core
- Vident::Typed::Phlex::HTML
- Includes:
- Component
- Defined in:
- lib/vident/typed/phlex/html.rb
Class Method Summary collapse
-
.attribute(name, signature = :any, **options, &converter) ⇒ Object
Phlex uses a DSL to define the document, and those methods could easily clash with our attribute accessors.
Class Method Details
.attribute(name, signature = :any, **options, &converter) ⇒ 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.
13 14 15 16 |
# File 'lib/vident/typed/phlex/html.rb', line 13 def attribute(name, signature = :any, **, &converter) [:delegates] = false super end |