lib/shallow_attributes.rb in shallow_attributes-0.9.2 vs lib/shallow_attributes.rb in shallow_attributes-0.9.3
- old
+ new
@@ -7,16 +7,21 @@
#
# @since 0.1.0
module ShallowAttributes
include InstanceMethods
+ # Error class for mandatory arguments that were not provided
+ #
+ # @since 0.10.0
+ class MissingAttributeError < TypeError; end
+
# Including ShallowAttributes class methods to specific class
#
# @private
#
# @param [Class] base the class containing class methods
#
- # @return [Class] class for incluting ShallowAttributes gem
+ # @return [Class] class for including ShallowAttributes gem
#
# @since 0.1.0
def self.included(base)
base.extend(ClassMethods)
end