Class: Rxhp::CustomElement

Inherits:
Element
  • Object
show all
Includes:
AttributeValidator
Defined in:
lib/rxhp/custom_element.rb

Direct Known Subclasses

ComposableElement

Instance Attribute Summary

Attributes inherited from Element

#attributes, #children

Instance Method Summary collapse

Methods included from AttributeValidator

match?, #valid_attributes?, #validate_attributes!

Methods inherited from Element

#children?, #fill_options, #initialize, #render, #render_children, #render_string, #valid?

Methods included from Scope

current, define_element, with_parent

Constructor Details

This class inherits a constructor from Rxhp::Element

Instance Method Details

#validate!Object

Check that there are no detectable problems, such as invalid attributes.


10
11
12
13
# File 'lib/rxhp/custom_element.rb', line 10

def validate!
  super
  validate_attributes!
end