Class: Postsvg::Model::Operators::Container::Forall
- Inherits:
-
Postsvg::Model::Operator
- Object
- Postsvg::Model::Operator
- Postsvg::Model::Operators::Container::Forall
- Defined in:
- lib/postsvg/model/operators/container.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(collection:, body:) ⇒ Forall
constructor
A new instance of Forall.
Methods inherited from Postsvg::Model::Operator
#accept, #operator?, register_as
Constructor Details
#initialize(collection:, body:) ⇒ Forall
Returns a new instance of Forall.
88 89 90 91 92 |
# File 'lib/postsvg/model/operators/container.rb', line 88 def initialize(collection:, body:) @collection = collection @body = body freeze end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
87 88 89 |
# File 'lib/postsvg/model/operators/container.rb', line 87 def body @body end |
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
87 88 89 |
# File 'lib/postsvg/model/operators/container.rb', line 87 def collection @collection end |
Class Method Details
.from_operands(stack) ⇒ Object
93 94 95 96 97 |
# File 'lib/postsvg/model/operators/container.rb', line 93 def self.from_operands(stack) body = stack.pop coll = stack.pop new(collection: coll, body: body) end |