REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.01 KB
Close
/proc/thread-self/root/opt/alt/ruby40/share/ruby/prism/translation/ripper/lexer.rb
Text
Base64
# frozen_string_literal: true # :markup: markdown require_relative "../ripper" module Prism module Translation class Ripper class Lexer # :nodoc: # :stopdoc: class State attr_reader :to_int, :to_s def initialize(i) @to_int = i @to_s = Ripper.lex_state_name(i) freeze end def [](index) case index when 0, :to_int @to_int when 1, :to_s @to_s else nil end end alias to_i to_int alias inspect to_s 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 # :startdoc: end end end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
lexer.rb
1.01 KB
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sexp.rb
3.07 KB
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shim.rb
201 B
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).