lib/hanami/utils/basic_object.rb in hanami-utils-0.7.2 vs lib/hanami/utils/basic_object.rb in hanami-utils-0.8.0
- old
+ new
@@ -8,22 +8,22 @@
#
# @since 0.3.5
#
# @see http://ruby-doc.org/core/Object.html#method-i-class
def class
- (class << self; self end).superclass
+ (class << self; self; end).superclass
end
# Bare minimum inspect for debugging purposes.
#
# @return [String] the inspect string
#
# @since 0.3.5
#
# @see http://ruby-doc.org/core/Object.html#method-i-inspect
def inspect
- "#<#{ self.class }:#{'%x' % (__id__ << 1)}#{ __inspect }>"
+ "#<#{self.class}:#{'%x' % (__id__ << 1)}#{__inspect}>" # rubocop:disable Style/FormatString
end
# Returns true if responds to the given method.
#
# @return [TrueClass,FalseClass] the result of the check
@@ -34,14 +34,15 @@
def respond_to?(method_name, include_all = false)
respond_to_missing?(method_name, include_all)
end
private
+
# Must be overridden by descendants
#
# @since 0.3.5
# @api private
- def respond_to_missing?(method_name, include_all)
+ def respond_to_missing?(_method_name, _include_all)
::Kernel.raise ::NotImplementedError
end
# @since 0.3.5
# @api private