Class: Rex::Parser::GraphML::Element::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/parser/graphml.rb

Overview

A default element defines the optional default value of an attribute. If not default is specified, per the GraphML specification, the attribute is undefined. See: graphml.graphdrawing.org/specification/xsd.html#element-default

Constant Summary collapse

ELEMENT_NAME =
'default'.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value: nil) ⇒ Default

Returns a new instance of Default.

Parameters:

  • value (defaults to: nil)

    The default attribute value.


162
163
164
# File 'lib/rex/parser/graphml.rb', line 162

def initialize(value: nil)
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value


172
173
174
# File 'lib/rex/parser/graphml.rb', line 172

def value
  @value
end

Class Method Details

.from_xml_attributes(_xml_attrs) ⇒ Object


166
167
168
# File 'lib/rex/parser/graphml.rb', line 166

def self.from_xml_attributes(_xml_attrs)
  new # no attributes for this element
end