class

Ripper::Lexer

ruby latest stable - Superclass: Ripper

No documentation available for this class.

Constants

Elem = Struct.new(:pos, :event, :tok, :state) do\ndef initialize(pos, event, tok, state)\nsuper(pos, event, tok, State.new(state))\nend\nend

State = Struct.new(:to_int, :to_s) do\nalias to_i to_int\ndef initialize(i) super(i, Ripper.lex_state_name(i)).freeze end\ndef inspect; "#<#{self.class}: #{self}>" end\ndef pretty_print(q) q.text(to_s) end\ndef ==(i) super or to_int == i end\ndef &(i) self.class.new(to_int & i) end\ndef |(i) self.class.new(to_int & i) end\ndef allbits?(i) to_int.allbits?(i) end\ndef anybits?(i) to_int.anybits?(i) end\ndef nobits?(i) to_int.nobits?(i) end\nend

Files

  • ext/ripper/lib/ripper/lexer.rb