Class: Rex::Parser::GraphML::Element::Default
- Inherits:
-
Object
- Object
- Rex::Parser::GraphML::Element::Default
- 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
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value: nil) ⇒ Default
constructor
A new instance of Default.
Constructor Details
#initialize(value: nil) ⇒ Default
Returns a new instance of Default.
162 163 164 |
# File 'lib/rex/parser/graphml.rb', line 162 def initialize(value: nil) @value = value end |
Instance Attribute Details
#value ⇒ Object
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 |