Method: Escapement::Tag#process

Defined in:
lib/escapement/tag.rb

#processObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/escapement/tag.rb', line 17

def process
  @entities << {
    type: node_to_type,
    html_tag: node.name,
    position: [@current_position, @current_position + node.text.length],
    attributes: Hash[filtered_attributes.map { |k, v| [k, v.value] }]
  }

  process_children
end