letz/ruby-pushbullet

View on GitHub
lib/core_ext/string.rb

Summary

Maintainability
A
0 mins
Test Coverage
class String
  def demodulize
    if (i = rindex('::'))
      self[(i + 2)..-1]
    else
      self
    end
  end
end