lib/rdoc/parser/ruby.rb: Avoid .chars.to_a.last
.chars.to_a.last
The code creates a lot of useless objects. Instead, using a regexp is shorter and faster.
lib/rdoc/parser/ruby.rb: Avoid
.chars.to_a.last
The code creates a lot of useless objects.
Instead, using a regexp is shorter and faster.