class Symbol
Public Instance Methods
generate(expected_errors: [], **synonyms)
click to toggle source
it will generate an string following the pattern specified
# File lib/string/pattern/add_to_ruby.rb, line 47 def generate(expected_errors: [], **synonyms) StringPattern.generate(self, expected_errors: expected_errors, **synonyms) end
Also aliased as: gen
val(string_to_validate, expected_errors: [], not_expected_errors: [], **synonyms)
Alias for: validate
validate(string_to_validate, expected_errors: [], not_expected_errors: [], **synonyms)
click to toggle source
it will validate an string following the pattern specified
# File lib/string/pattern/add_to_ruby.rb, line 54 def validate(string_to_validate, expected_errors: [], not_expected_errors: [], **synonyms) StringPattern.validate(text: string_to_validate, pattern: to_s, expected_errors: expected_errors, not_expected_errors: not_expected_errors, **synonyms) end
Also aliased as: val