Class: RASEL::StackItem
- Inherits:
-
Rational
- Object
- Rational
- RASEL::StackItem
- Defined in:
- lib/rasel.rb
Instance Attribute Summary collapse
-
#annotation ⇒ Object
readonly
Returns the value of attribute annotation.
Instance Method Summary collapse
-
#initialize(n, annotation) ⇒ StackItem
constructor
A new instance of StackItem.
Constructor Details
#initialize(n, annotation) ⇒ StackItem
Returns a new instance of StackItem.
99 100 101 102 |
# File 'lib/rasel.rb', line 99 def initialize n, annotation super n @annotation = annotation || (n.annotation if n.respond_to? :annotation) end |
Instance Attribute Details
#annotation ⇒ Object (readonly)
Returns the value of attribute annotation.
98 99 100 |
# File 'lib/rasel.rb', line 98 def annotation @annotation end |