Class: Postscript::Model::Operators::Transformations::Concat
- Inherits:
-
Postscript::Model::Operator
- Object
- Postscript::Model::Operator
- Postscript::Model::Operators::Transformations::Concat
- Defined in:
- lib/postscript/model/operators/transformations.rb
Instance Attribute Summary collapse
-
#matrix ⇒ Object
readonly
Returns the value of attribute matrix.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(matrix:) ⇒ Concat
constructor
A new instance of Concat.
Methods inherited from Postscript::Model::Operator
#accept, #operator?, register_as
Constructor Details
#initialize(matrix:) ⇒ Concat
Returns a new instance of Concat.
52 53 54 55 |
# File 'lib/postscript/model/operators/transformations.rb', line 52 def initialize(matrix:) @matrix = matrix freeze end |
Instance Attribute Details
#matrix ⇒ Object (readonly)
Returns the value of attribute matrix.
51 52 53 |
# File 'lib/postscript/model/operators/transformations.rb', line 51 def matrix @matrix end |
Class Method Details
.from_operands(stack) ⇒ Object
56 57 58 |
# File 'lib/postscript/model/operators/transformations.rb', line 56 def self.from_operands(stack) new(matrix: stack.pop) end |