Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/robust_excel_ole/base.rb
Instance Method Summary collapse
Instance Method Details
#end_with?(*suffixes) ⇒ Boolean
11 12 13 14 15 |
# File 'lib/robust_excel_ole/base.rb', line 11 def end_with?(*suffixes) suffixes.any? do |suffix| self[-suffix.size .. -1] == suffix end end |