Class: Minjs::ECMA262::ExpMod

Inherits:
ExpArg2 show all
Includes:
BinaryOperation
Defined in:
lib/minjs/ecma262/exp.rb

Overview

11.5.3 Applying the % Operator

Instance Attribute Summary

Attributes inherited from ExpArg2

#val, #val2

Instance Method Summary collapse

Methods included from BinaryOperation

#==, #add_paren, #remove_paren

Methods inherited from ExpArg2

#deep_dup, #initialize, #replace, #to_js, #traverse

Methods inherited from Exp

#reduce, #to_js, #traverse

Methods inherited from Base

#==, #concat, #deep_dup, #replace, #to_js, #to_s

Constructor Details

This class inherits a constructor from Minjs::ECMA262::ExpArg2

Instance Method Details

#ecma262_typeofObject



793
794
795
# File 'lib/minjs/ecma262/exp.rb', line 793

def ecma262_typeof
  :number
end

#priorityObject



789
790
791
# File 'lib/minjs/ecma262/exp.rb', line 789

def priority
  PRIORITY_MULTIPLICATIVE
end

#symObject



785
786
787
# File 'lib/minjs/ecma262/exp.rb', line 785

def sym
  "%"
end