diff options
Diffstat (limited to 'doc/string/end_with_p.rdoc')
| -rw-r--r-- | doc/string/end_with_p.rdoc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/string/end_with_p.rdoc b/doc/string/end_with_p.rdoc new file mode 100644 index 0000000000..9a95d74fde --- /dev/null +++ b/doc/string/end_with_p.rdoc @@ -0,0 +1,9 @@ +Returns whether +self+ ends with any of the given +strings+: + + 'foo'.end_with?('oo') # => true + 'foo'.end_with?('bar', 'oo') # => true + 'foo'.end_with?('bar', 'baz') # => false + 'foo'.end_with?('') # => true + 'こんにちは'.end_with?('は') # => true + +Related: see {Querying}[rdoc-ref:String@Querying]. |
