Kiss A simpler, smarter web application framework for Ruby

String Subclass of Object

Methods

Public Instance Methods

to_const() source

Not documented

    # File lib/kiss/hacks.rb, line 105
  def to_const
    begin
      parts = self.split(/::/)
      klass = Kernel
      while (next_part = parts.shift)
        klass = klass.const_get(next_part)
      end
      
      klass
    rescue
      raise "Constant '#{self}' not defined"
    end
  end
    

Disabled; run with $DEBUG to generate this.