module Shaf::UriHelper
Public Class Methods
base_uri()
click to toggle source
# File lib/shaf/extensions/resource_uris.rb, line 86 def self.base_uri return Settings.base_uri if Settings.base_uri protocol = Settings.protocol || 'http' host = Settings.hostname || 'localhost' port = Settings.port ? ":#{Settings.port}" : "" "#{protocol}://#{host}#{port}" end
included(mod)
click to toggle source
# File lib/shaf/extensions/resource_uris.rb, line 82 def self.included(mod) mod.extend self end