Class: T2Server::Port
- Inherits:
-
Object
- Object
- T2Server::Port
- Includes:
- XML::Methods
- Defined in:
- lib/t2-server/port.rb
Overview
Base class of InputPort and OutputPort
Direct Known Subclasses
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
The “depth” of the port.
-
#name ⇒ Object
readonly
The port’s name.
Instance Method Summary collapse
-
#initialize(run, xml) ⇒ Port
constructor
:stopdoc: Create a new port.
Methods included from XML::Methods
#get_uris_from_doc, #xml_children, #xml_document, #xml_first_child, #xml_node_attribute, #xml_node_content, #xml_node_name, #xml_text_node, #xpath_attr, #xpath_compile, #xpath_find, #xpath_first
Constructor Details
#initialize(run, xml) ⇒ Port
:stopdoc: Create a new port.
51 52 53 54 55 |
# File 'lib/t2-server/port.rb', line 51 def initialize(run, xml) @run = run parse_xml(xml) end |
Instance Attribute Details
#depth ⇒ Object (readonly)
The “depth” of the port. 0 = a singleton value.
47 48 49 |
# File 'lib/t2-server/port.rb', line 47 def depth @depth end |
#name ⇒ Object (readonly)
The port’s name
44 45 46 |
# File 'lib/t2-server/port.rb', line 44 def name @name end |