method
check_to
v1_9_2_180 -
Show latest stable
- Class:
URI::MailTo
check_to(v)private
No documentation available.
# File lib/uri/mailto.rb, line 158
def check_to(v)
return true unless v
return true if v.size == 0
if parser.regexp[:OPAQUE] !~ v || /\A#{MAILBOX_PATTERN}*\z/ !~ v
raise InvalidComponentError,
"bad component(expected opaque component): #{v}"
end
return true
end