class String

Public Instance Methods

to_url() click to toggle source
# File lib/sentry/helper.rb, line 4
def to_url
  unless self[/\Ahttp:\/\//] || self[/\Ahttps:\/\//]
    self.sub! self, "http://#{self}"
  else
    self
  end
end