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