13
14
15
16
17
18
19
20
21
22
|
# File 'lib/http/2/error.rb', line 13
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
HTTP2::Error.types[type] = klass
end
|