You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String#delete_prefix and String#delete_prefix! appear in the documentation for Ruby 2.4.1, but when I try to use them I get the following error:
"hello".delete_prefix("hel")NoMethodError: undefinedmethod`delete_prefix' for "hello":String from (irb):1 from /Users/alex/.rbenv/versions/2.4.1/bin/irb:11:in `<main>'
These work properly in 2.5.0dev:
"hello".delete_prefix("hel")=>"lo"
The text was updated successfully, but these errors were encountered:
String#delete_prefix and String#delete_prefix! appear in the documentation for Ruby 2.4.1, but when I try to use them I get the following error:
These work properly in 2.5.0dev:
The text was updated successfully, but these errors were encountered: