Class: RASEL::StackItem

Inherits:
Rational
  • Object
show all
Defined in:
lib/rasel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#annotationObject (readonly)

Returns the value of attribute annotation.



98
99
100
# File 'lib/rasel.rb', line 98

def annotation
  @annotation
end