private Method

MailTo.check_to(v)

There's no documentation for this item.

Source Code

# File uri/mailto.rb, line 158
def check_to(v)
  return true unless v
  return true if v.size == 0

  if OPAQUE !~ v || /\A#{MAILBOX_PATTERN}*\z/o !~ v
    raise InvalidComponentError,
      "bad component(expected opaque component): #{v}"
  end

  return true
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.