Class: MARS::Rendering::Graph::Node
- Inherits:
-
Object
- Object
- MARS::Rendering::Graph::Node
- Defined in:
- lib/mars/rendering/graph/node.rb
Constant Summary collapse
- STEP =
:step- OUTPUT =
:output- INPUT =
:input- GATE =
:gate
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, name, type) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(id, name, type) ⇒ Node
Returns a new instance of Node.
14 15 16 17 18 |
# File 'lib/mars/rendering/graph/node.rb', line 14 def initialize(id, name, type) @id = id @name = name @type = type end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/mars/rendering/graph/node.rb', line 12 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/mars/rendering/graph/node.rb', line 12 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/mars/rendering/graph/node.rb', line 12 def type @type end |