class Minjs::ECMA262::DivOrRegexpLiteral

Class of psedo element.

This class means element is division punctuator or regular expression literal, but lexical parser cannot determine which of them.

Public Class Methods

get() click to toggle source

get instance

# File lib/minjs/ecma262/literal.rb, line 49
def self.get
  @@instance
end

Public Instance Methods

==(obj) click to toggle source

compare object

# File lib/minjs/ecma262/literal.rb, line 42
def ==(obj)
  self.class == obj.class and self.val == obj.val
end
traverse(parent, &block) click to toggle source

Traverses this children and itself with given block.

@see Base#traverse

# File lib/minjs/ecma262/literal.rb, line 38
def traverse(parent, &block)
end