Module: Xqsr3::StringUtilities::EndsWith
- Included in:
- String
- Defined in:
- lib/xqsr3/string_utilities/ends_with.rb
Defined Under Namespace
Modules: EndsWith_Helper_
Class Method Summary collapse
-
.string_ends_with?(s, *args) ⇒ Boolean
Reports on whether a string
s
ends with a given prefix or set of prefixes (args
).
Instance Method Summary collapse
Class Method Details
.string_ends_with?(s, *args) ⇒ Boolean
Reports on whether a string s
ends with a given prefix or set of prefixes (args
)
Parameters
-
*Required parameters*:
s
- String
-
The string to be evaluated
119 120 121 122 |
# File 'lib/xqsr3/string_utilities/ends_with.rb', line 119 def self.string_ends_with? s, *args EndsWith_Helper_.string_ends_with_array_ s, args end |
Instance Method Details
#ends_with?(*args) ⇒ Boolean
124 125 126 127 |
# File 'lib/xqsr3/string_utilities/ends_with.rb', line 124 def ends_with? *args EndsWith_Helper_.string_ends_with_array_ self, args end |