Parent

Methods

Picombo::Url

Helper class to assist in URL generation

Public Class Methods

base(protocol = nil) click to toggle source

Returns the base URL for use with any internal links.

   # File lib/classes/url.rb, line 5
5:         def self.base(protocol = nil)
6:             protocol = Picombo::Config.get('config.protocol') if protocol.nil?
7:             protocol+"://"+Picombo::Config.get('config.site_domain')+'/'
8:         end
site(path, protocol = nil) click to toggle source

Creates a full URL using the base path plus the path passed to the method

    # File lib/classes/url.rb, line 11
11:         def self.site(path, protocol = nil)
12:             base(protocol)+path
13:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.