Class: Postsvg::Model::Operators::ControlFlow::Stopped
- Inherits:
-
Postsvg::Model::Operator
- Object
- Postsvg::Model::Operator
- Postsvg::Model::Operators::ControlFlow::Stopped
- Defined in:
- lib/postsvg/model/operators/control_flow.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(body:) ⇒ Stopped
constructor
A new instance of Stopped.
Methods inherited from Postsvg::Model::Operator
#accept, #operator?, register_as
Constructor Details
#initialize(body:) ⇒ Stopped
Returns a new instance of Stopped.
108 109 110 111 |
# File 'lib/postsvg/model/operators/control_flow.rb', line 108 def initialize(body:) @body = body freeze end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
107 108 109 |
# File 'lib/postsvg/model/operators/control_flow.rb', line 107 def body @body end |
Class Method Details
.from_operands(stack) ⇒ Object
112 113 114 |
# File 'lib/postsvg/model/operators/control_flow.rb', line 112 def self.from_operands(stack) new(body: stack.pop) end |