Class: Postsvg::Model::Computed

Inherits:
Object
  • Object
show all
Defined in:
lib/postsvg/model/operator.rb

Overview

Sentinel value the parser pushes onto the operand stack when an operator's runtime result is unknown at parse time (e.g. the output of findfont, add, dup). Carries no semantic value; its purpose is to keep the parse-stack shape in sync with the runtime stack so chained operators parse cleanly.

Instance Method Summary collapse

Instance Method Details

#to_sObject



53
54
55
# File 'lib/postsvg/model/operator.rb', line 53

def to_s
  "<computed:#{operator_keyword}>"
end