module Vorpal::Util::StringUtils

@private

Public Instance Methods

escape_class_name(class_name) click to toggle source

Escapes the name of a class so that it can be embedded into the name of another class. This means that the result should always be ‘#const_defined?` friendly.

# File lib/vorpal/util/string_utils.rb, line 10
def escape_class_name(class_name)
  class_name.gsub("::", "__")
end