1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ext/ripper/lib/ripper/lexer.rb: fix a wrong delegation

The target method name is a typo.
This commit is contained in:
Yusuke Endoh 2019-08-07 03:12:10 +09:00
parent 2d6b92c5f6
commit ef8c5161b4

View file

@ -54,7 +54,7 @@ class Ripper
def pretty_print(q) q.text(to_s) end def pretty_print(q) q.text(to_s) end
def ==(i) super or to_int == i 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 |(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 allbits?(i) to_int.allbits?(i) end
def anybits?(i) to_int.anybits?(i) end def anybits?(i) to_int.anybits?(i) end
def nobits?(i) to_int.nobits?(i) end def nobits?(i) to_int.nobits?(i) end