- newfunction(:validate_slength, :doc => <<-'DOC') do |args|
- Validate that the first argument is a string (or an array of strings), and
- less/equal to than the length of the second argument. An optional third
- parameter can be given the minimum length. It fails if the first
- argument is not a string or array of strings, and if arg 2 and arg 3 are
- not convertable to a number.
+ newfunction(:validate_slength, :doc => <<-DOC
+ @summary
+ Validate that the first argument is a string (or an array of strings), and less/equal to than the length of the second argument.
+ An optional third parameter can be given the minimum length. It fails if the first argument is not a string or array of strings,
+ and if arg 2 and arg 3 are not convertable to a number.