Skip to content
instance method

String#delete_suffix!

(::string suffix) -> self?
delete_suffix!(suffix) → self or nil

Like String#delete_suffix, except that self is modified in place; returns self if the suffix is removed, nil otherwise.

Related: see Modifying.