Define Ripper::Lexer::Elem#to_s
Alias #inspect as #to_s also in the new Ripper::Lexer::Elem class, so that puts Ripper::Lexer.new(code).scan shows the attributes.
#inspect
#to_s
Ripper::Lexer::Elem
puts Ripper::Lexer.new(code).scan
Define Ripper::Lexer::Elem#to_s
Alias
#inspect
as#to_s
also in the newRipper::Lexer::Elem
class, so that
puts Ripper::Lexer.new(code).scan
shows theattributes.