class Minjs::ECMA262::ExpPostDec
Class of the Postfix decrement operator expression element.
@see www.ecma-international.org/ecma-262 ECMA262
11.3.2
Public Class Methods
new(val)
click to toggle source
# File lib/minjs/ecma262/expression.rb, line 823 def initialize(val) @val = val end
Public Instance Methods
priority()
click to toggle source
@return [Fixnum] expression priority
# File lib/minjs/ecma262/expression.rb, line 833 def priority PRIORITY_POSTFIX end
sym()
click to toggle source
symbol of expression
# File lib/minjs/ecma262/expression.rb, line 828 def sym "--" end
to_js(options = {})
click to toggle source
Returns a ECMAScript string containg the representation of element. @see Base#to_js
# File lib/minjs/ecma262/expression.rb, line 839 def to_js(options = {}) concat options, @val, sym end