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)


7
8
9
# File 'lib/roo/excelx.rb', line 7

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