Flowdock
class
Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Superclass: Ripper

No documentation

This class has no description. You can help the Ruby community by adding new notes.

Constants

Elem = Struct.new(:pos, :event, :tok, :state) do def initialize(pos, event, tok, state) super(pos, event, tok, State.new(state)) end end

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

Attributes

Show files where this class is defined (1 file)
Register or log in to add new notes.