Class: MarsBase10::Stack::Node
- Inherits:
-
Object
- Object
- MarsBase10::Stack::Node
- Defined in:
- lib/mars_base_10/stack.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#next ⇒ Object
Returns the value of attribute next.
Instance Method Summary collapse
-
#initialize(data) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(data) ⇒ Node
Returns a new instance of Node.
12 13 14 15 |
# File 'lib/mars_base_10/stack.rb', line 12 def initialize data self.data = data self.next = nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
11 12 13 |
# File 'lib/mars_base_10/stack.rb', line 11 def data @data end |
#next ⇒ Object
Returns the value of attribute next.
11 12 13 |
# File 'lib/mars_base_10/stack.rb', line 11 def next @next end |