Class: Ripper::Lexer::State
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | ext/ripper/lib/ripper/lexer.rb |
Class Method Summary
- .new(i) ⇒ State constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(i) ⇒ State
# File 'ext/ripper/lib/ripper/lexer.rb', line 51
def initialize(i) super(i, Ripper.lex_state_name(i)).freeze end
Instance Attribute Details
#to_i (readonly)
Alias for #to_int.
# File 'ext/ripper/lib/ripper/lexer.rb', line 50
alias to_i to_int
#to_int (rw) Also known as: #to_i
[ GitHub ]#to_s (rw)
[ GitHub ]Instance Method Details
#&(i)
[ GitHub ]#==(i)
[ GitHub ]# File 'ext/ripper/lib/ripper/lexer.rb', line 54
def ==(i) super or to_int == i end
#allbits?(i) ⇒ Boolean
# File 'ext/ripper/lib/ripper/lexer.rb', line 57
def allbits?(i) to_int.allbits?(i) end
#anybits?(i) ⇒ Boolean
# File 'ext/ripper/lib/ripper/lexer.rb', line 58
def anybits?(i) to_int.anybits?(i) end
#inspect
[ GitHub ]# File 'ext/ripper/lib/ripper/lexer.rb', line 52
def inspect; "#<#{self.class}: #{self}>" end
#nobits?(i) ⇒ Boolean
# File 'ext/ripper/lib/ripper/lexer.rb', line 59
def nobits?(i) to_int.nobits?(i) end
#pretty_print(q)
[ GitHub ]# File 'ext/ripper/lib/ripper/lexer.rb', line 53
def pretty_print(q) q.text(to_s) end