Class: Vident::Phlex::HTML

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

Class Method Summary collapse

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