Class/Module Index [+]

Quicksearch

Cinch::Utilities::Kernel

Public Class Methods

string_to_const(s) click to toggle source

@return [Object]

# File lib/cinch/utilities/kernel.rb, line 7
def self.string_to_const(s)
  return s unless s.is_a?(::String)
  s.split("::").inject(Kernel) {|base, name| base.const_get(name) }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.