lib/lotus/validations.rb in lotus-validations-0.2.2 vs lib/lotus/validations.rb in lotus-validations-0.2.3
- old
+ new
@@ -124,9 +124,19 @@
# @api private
def validations
@validations ||= ValidationSet.new
end
+ # Set of user defined attributes
+ #
+ # @return [Array<String>]
+ #
+ # @since 0.2.3
+ # @api private
+ def defined_attributes
+ validations.names.map(&:to_s)
+ end
+
private
# Transfers attributes to a base class
#
# @param base [Module] the base class to transfer attributes to