lib/hanami/utils/basic_object.rb in hanami-utils-1.3.5 vs lib/hanami/utils/basic_object.rb in hanami-utils-1.3.6

- old
+ new

@@ -2,11 +2,11 @@ module Utils # BasicObject # # @since 0.3.5 class BasicObject < ::BasicObject - # Lookup constants at the top-level namespace, if they are missing in the + # Lookups constants at the top-level namespace, if they are missing in the # current context. # # @param name [Symbol] the constant name # # @return [Object, Module] the constant @@ -19,11 +19,11 @@ # @see https://ruby-doc.org/core/Module.html#method-i-const_missing def self.const_missing(name) ::Object.const_get(name) end - # Return the class for debugging purposes. + # Returns the class for debugging purposes. # # @since 0.3.5 # # @see http://ruby-doc.org/core/Object.html#method-i-class def class @@ -46,11 +46,11 @@ # rubocop:enable Style/FormatStringToken # rubocop:enable Style/FormatString # @!macro [attach] instance_of?(class) # - # Determine if self is an instance of given class or module + # Determines if self is an instance of given class or module # # @param class [Class,Module] the class of module to verify # # @return [TrueClass,FalseClass] the result of the check # @@ -61,11 +61,11 @@ # @see http://ruby-doc.org/core/Object.html#method-i-instance_of-3F define_method :instance_of?, ::Object.instance_method(:instance_of?) # @!macro [attach] is_a?(class) # - # Determine if self is of the type of the object class or module + # Determines if self is of the type of the object class or module # # @param class [Class,Module] the class of module to verify # # @return [TrueClass,FalseClass] the result of the check # @@ -76,10 +76,10 @@ # @see http://ruby-doc.org/core/Object.html#method-i-is_a-3F define_method :is_a?, ::Object.instance_method(:is_a?) # @!macro [attach] kind_of?(class) # - # Determine if self is of the kind of the object class or module + # Determines if self is of the kind of the object class or module # # @param class [Class,Module] the class of module to verify # # @return [TrueClass,FalseClass] the result of the check #