lib/raven/interfaces.rb in sentry-raven-1.2.3 vs lib/raven/interfaces.rb in sentry-raven-2.0.0

- old
+ new

@@ -1,8 +1,6 @@ module Raven - - # TODO: a constant isn't appropriate here, refactor INTERFACES = {} # rubocop:disable Style/MutableConstant class Interface def initialize(attributes = nil) attributes.each do |attr, value| @@ -15,10 +13,10 @@ def self.name(value = nil) @interface_name ||= value end def to_hash - Hash[instance_variables.map { |name| [name[1..-1].to_sym, instance_variable_get(name)] } ] + Hash[instance_variables.map { |name| [name[1..-1].to_sym, instance_variable_get(name)] }] end end def self.register_interface(mapping) mapping.each_pair do |key, klass|