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