Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/roo/excelx.rb

Instance Method Summary collapse

Instance Method Details

#end_with?(str) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/roo/excelx.rb', line 10

def end_with?(str)
  self[-str.length,str.length] == str
end