Issue #10574 has been reported by Alex Boyd.

----------------------------------------
Feature #10574: Add String#lchomp and String.lchomp!
https://bugs.ruby-lang.org/issues/10574

* Author: Alex Boyd
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: 
----------------------------------------
With the expected behavior, i.e.

~~~
irb(main):013:0> 'foobar'.lchomp('foo')
=> "bar"
irb(main):014:0> 'foobar'.lchomp('baz')
=> "foobar"
~~~

A quick google search will turn up plenty of practical uses for this, as well as lots of libraries that patch `String` themselves to add this.



-- 
https://bugs.ruby-lang.org/