Class
Attributes
Read
No documentation available
Read
No documentation available
Read
No documentation available
Read
No documentation available
Class Methods
::
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 59
def initialize(i)
@to_int = i
@to_s = Ripper.lex_state_name(i)
freeze
end
No documentation available
Instance Methods
#
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 80
def &(i) self.class.new(to_int & i) end
No documentation available
#
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 79
def ==(i) super or to_int == i end
No documentation available
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 65
def [](index)
case index
when 0, :to_int
@to_int
when 1, :to_s
@event
else
nil
end
end
No documentation available
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 82
def allbits?(i) to_int.allbits?(i) end
No documentation available
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 83
def anybits?(i) to_int.anybits?(i) end
No documentation available
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 84
def nobits?(i) to_int.nobits?(i) end
No documentation available
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 78
def pretty_print(q) q.text(to_s) end
No documentation available
#
ext/ripper/lib/ripper/lexer.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/ext/ripper/lib/ripper/lexer.rb, line 81
def |(i) self.class.new(to_int | i) end
No documentation available