Class: Vident::Typed::Phlex::HTML

Inherits:
Phlex::Core
  • Object
show all
Includes:
Component
Defined in:
lib/vident/typed/phlex/html.rb

Class Method Summary collapse

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, **options, &converter)
  options[:delegates] = false
  super
end