Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rupy/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#end_with?(c) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/rupy/core_ext/string.rb', line 4

def end_with?(c)
    self[-1].chr == c
end