https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112014-12-15T08:27:50ZRuby Issue Tracking SystemRuby master - Feature #10574: Add String#lchomp and String.lchomp!https://redmine.ruby-lang.org/issues/10574?journal_id=504042014-12-15T08:27:50Zshevegen (Robert A. Heiler)shevegen@gmail.com
<ul></ul><p>Possibly also add the default without arguments in order to compare to .chomp:</p>
<pre><code>"\nacbdef\n".chomp # => "\nacbdef"
"\nacbdef\n".lchomp # => "acbdef\n"
</code></pre> Ruby master - Feature #10574: Add String#lchomp and String.lchomp!https://redmine.ruby-lang.org/issues/10574?journal_id=504112014-12-15T16:34:45Zjavawizard (Alex Boyd)alex@opengroove.org
<ul></ul><p>Agreed. I was slightly lazy writing up my example... :-)</p>