class Sitespec::Configuration

Constants

DEFAULT_BUILD_PATH

Attributes

auto_complete_html_path[W]
build_path[W]

Public Class Methods

new() click to toggle source
# File lib/sitespec/configuration.rb, line 9
def initialize
  @enabled = true
  @auto_complete_html_path = true
end

Public Instance Methods

auto_complete_html_path() click to toggle source
# File lib/sitespec/configuration.rb, line 14
def auto_complete_html_path
  !!@auto_complete_html_path
end
build_path() click to toggle source
# File lib/sitespec/configuration.rb, line 18
def build_path
  @build_path || DEFAULT_BUILD_PATH
end
build_pathname() click to toggle source

@return [Pathname]

# File lib/sitespec/configuration.rb, line 23
def build_pathname
  Pathname.new(build_path)
end
disable() click to toggle source
# File lib/sitespec/configuration.rb, line 27
def disable
  @enabled = false
end
enable() click to toggle source
# File lib/sitespec/configuration.rb, line 31
def enable
  @enabled = true
end
enabled() click to toggle source
# File lib/sitespec/configuration.rb, line 35
def enabled
  !!@enabled
end
Also aliased as: enabled?
enabled?()
Alias for: enabled