Method: Html::Tag#initialize

Defined in:
lib/html/tag.rb

#initialize(value = nil, **attrs) ⇒ Tag

Returns a new instance of Tag.



8
9
10
11
12
# File 'lib/html/tag.rb', line 8

def initialize(value = nil, **attrs)
  @attributes = attrs
  @value = value
  valid_children?
end