Module: Arachni::Parser::Nodes::Element::WithAttributes

Included in:
Arachni::Parser::Nodes::Element
Defined in:
lib/arachni/parser/nodes/element/with_attributes.rb,
lib/arachni/parser/nodes/element/with_attributes/attributes.rb

Defined Under Namespace

Classes: Attributes

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object


22
23
24
# File 'lib/arachni/parser/nodes/element/with_attributes.rb', line 22

def []( name )
    attributes[name]
end

#[]=(name, value) ⇒ Object


26
27
28
# File 'lib/arachni/parser/nodes/element/with_attributes.rb', line 26

def []=( name, value )
    attributes[name] = value
end

#attributesObject


18
19
20
# File 'lib/arachni/parser/nodes/element/with_attributes.rb', line 18

def attributes
    @attributes ||= Attributes.new
end