lib/lotus/validations/validation_set.rb in lotus-validations-0.2.2 vs lib/lotus/validations/validation_set.rb in lotus-validations-0.2.3
- old
+ new
@@ -14,11 +14,12 @@
:acceptance,
:format,
:inclusion,
:exclusion,
:confirmation,
- :size
+ :size,
+ :type
].freeze
# @since 0.2.2
# @api private
def initialize
@@ -41,9 +42,15 @@
# @since 0.2.2
# @api private
def each_key(&blk)
@validations.each_key(&blk)
+ end
+
+ # @since 0.2.3
+ # @api private
+ def names
+ @validations.keys
end
private
# Checks at the loading time if the user defined validations are recognized
#