irb: replace deprecated method