Class: Postsvg::Model::Operators::Container::Token
- Inherits:
-
Postsvg::Model::Operator
- Object
- Postsvg::Model::Operator
- Postsvg::Model::Operators::Container::Token
- Defined in:
- lib/postsvg/model/operators/container.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target:) ⇒ Token
constructor
A new instance of Token.
Methods inherited from Postsvg::Model::Operator
#accept, #operator?, register_as
Constructor Details
#initialize(target:) ⇒ Token
Returns a new instance of Token.
148 149 150 151 |
# File 'lib/postsvg/model/operators/container.rb', line 148 def initialize(target:) @target = target freeze end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
147 148 149 |
# File 'lib/postsvg/model/operators/container.rb', line 147 def target @target end |
Class Method Details
.from_operands(stack) ⇒ Object
152 153 154 |
# File 'lib/postsvg/model/operators/container.rb', line 152 def self.from_operands(stack) new(target: stack.pop) end |