class HTTP2Next::Error::Error

Public Class Methods

inherited(klass) click to toggle source
Calls superclass method
# File lib/http/2/next/error.rb, line 12
def self.inherited(klass)
  super

  type = klass.name or return

  type = type.split("::").last or return

  type = type.gsub(/([^\^])([A-Z])/, '\1_\2').downcase.to_sym
  HTTP2Next::Error.types[type] = klass
end