Class: Disp3D::PathInfo
- Inherits:
-
Object
- Object
- Disp3D::PathInfo
- Defined in:
- lib/path_info.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#parent_node ⇒ Object
readonly
Returns the value of attribute parent_node.
-
#path_id ⇒ Object
readonly
Returns the value of attribute path_id.
Instance Method Summary collapse
-
#initialize(node, parent_node, path_id) ⇒ PathInfo
constructor
A new instance of PathInfo.
Constructor Details
#initialize(node, parent_node, path_id) ⇒ PathInfo
Returns a new instance of PathInfo.
9 10 11 12 13 14 15 16 17 |
# File 'lib/path_info.rb', line 9 def initialize(node, parent_node, path_id) Util3D.check_arg_type(Node, node) Util3D.check_arg_type(NodeCollection, parent_node) Util3D.check_arg_type(::Integer, path_id) @node = node @parent_node = parent_node @path_id = path_id end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
5 6 7 |
# File 'lib/path_info.rb', line 5 def node @node end |
#parent_node ⇒ Object (readonly)
Returns the value of attribute parent_node.
6 7 8 |
# File 'lib/path_info.rb', line 6 def parent_node @parent_node end |
#path_id ⇒ Object (readonly)
Returns the value of attribute path_id.
7 8 9 |
# File 'lib/path_info.rb', line 7 def path_id @path_id end |