module Humpyard

Constants

VERSION

This is the actual version of the Humpyard gem

Public Class Methods

base_directory() click to toggle source

This is the path to the Humpyard gem's root directory

# File lib/humpyard.rb, line 15
def base_directory
  ::File.expand_path(::File.join(::File.dirname(__FILE__), '..'))
end
config() click to toggle source

To access the actual configuration of your Humpyard, you can call this.

An example would be Humpyard.config.www_prefix = 'cms/:locale/'

See Humpyard::Config for configuration options.

# File lib/humpyard.rb, line 32
def config
  @config ||= Humpyard::Config.new
end
configure(&block) click to toggle source

Configure the Humpyard See Humpyard::Config#configure for details

# File lib/humpyard.rb, line 42
def configure(&block)
  config.configure(&block)
end
lib_directory() click to toggle source

This is the path to the Humpyard gem's lib directory

# File lib/humpyard.rb, line 20
def lib_directory
  ::File.expand_path(::File.join(::File.dirname(__FILE__)))
end
uri_parser() click to toggle source
# File lib/humpyard.rb, line 36
def uri_parser
  @uri_parser ||= Humpyard::UriParser
end