Returns:
116 117 118
# File 'lib/m_string.rb', line 116 def ends_with?(x) self.match(/#{x}$/) ? true : false end