lib/theme_check/string_helpers.rb
def demodulize(path)
      path = path.to_s
      if (i = path.rindex("::"))
        path[(i + 2)..-1]
      else
        path
      end
    end
# Removes the module part from the expression in the string.
# Ported from ActiveSupport
#
#   demodulize('ActiveSupport::Inflector::Inflections') # => "Inflections"
#   demodulize('Inflections')                           # => "Inflections"
#   demodulize('::Inflections')                         # => "Inflections"
#   demodulize('')                                      # => ""
#
# See also #deconstantize.
Removes the module part from the expression in the string.



See also #deconstantize.
Removes the module part from the expression in the string . See also #deconstantize .
def demodulize(path)
      path = path.to_s
      if (i = path.rindex("::"))
        path[(i + 2)..-1]
      else
        path
      end
    end
def demodulize ( path ) path = path . to_s if ( i = path . rindex ( "::" ) ) path [ ( i + 2 ) .. - 1 ] else path end end
Removes the module part from the expression in the string.
Removes the module part from the expression in the string .
path