module Bashly::Script::Introspection::Validate
Public Instance Methods
validate()
click to toggle source
Returns an array of validations
# File lib/bashly/script/introspection/validate.rb, line 6 def validate return [] unless options['validate'] result = options['validate'] result.is_a?(Array) ? result : [result] end
validate?(= validate.any?)
click to toggle source
Returns true if there are any validations defined
# File lib/bashly/script/introspection/validate.rb, line 14 def validate? = validate.any? end