lib/hanami/utils/basic_object.rb in hanami-utils-1.1.2 vs lib/hanami/utils/basic_object.rb in hanami-utils-1.2.0.beta1
- old
+ new
@@ -18,12 +18,17 @@
# @return [String] the inspect string
#
# @since 0.3.5
#
# @see http://ruby-doc.org/core/Object.html#method-i-inspect
+ #
+ # rubocop:disable Style/FormatString
+ # rubocop:disable Style/FormatStringToken
def inspect
- "#<#{self.class}:#{'0x0000%x' % (__id__ << 1)}#{__inspect}>" # rubocop:disable Style/FormatString
+ "#<#{self.class}:#{'0x0000%x' % (__id__ << 1)}#{__inspect}>"
end
+ # rubocop:enable Style/FormatStringToken
+ # rubocop:enable Style/FormatString
# Alias for __id__
#
# @return [Fixnum] the object id
#