lib/iron/web/url.rb
# Returns the full start of the url, minus params and fragment
Returns the full start of the url, minus params and fragment
Returns the full start of the url minus params and fragment
def base
    val = ''
    unless @server.blank?
      val = (@scheme || Url::default_scheme) + '://' + @server
      val += ':' + @port.to_s unless @port.to_s.blank?
    end
    p = (@path || '')
    p = '/' + p unless p.blank? || p.starts_with?('/')
    val + p 
  end
def base val = '' unless @server . blank? val = ( @scheme || Url :: default_scheme ) + '://' + @server val += ':' + @port . to_s unless @port . to_s . blank? end p = ( @path || '' ) p = '/' + p unless p . blank? || p . starts_with? ( '/' ) val + p end
Returns the full start of the url, minus params and fragment
Returns the full start of the url minus params and fragment