Class/Module Index [+]

Quicksearch

Object::Nanoc3

Constants

Plugin

@deprecated Use {Nanoc::PluginRegistry.instance} instead

VERSION

The current nanoc version.

Public Class Methods

on_windows?() click to toggle source

@return [Boolean] True if the current platform is Windows,

# File lib/nanoc.rb, line 16
def self.on_windows?
  !!(RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/)
end
version_information() click to toggle source

@return [String] A string containing information about this nanoc version

and its environment (Ruby engine and version, Rubygems version if any).
# File lib/nanoc.rb, line 6
def self.version_information
  gem_info = defined?(Gem) ? "with RubyGems #{Gem::VERSION}" : 'without RubyGems'
  engine   = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
  res = ''
  res << "nanoc #{Nanoc::VERSION} © 2007-2013 Denis Defreyne.\n"
  res << "Running #{engine} #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) on #{RUBY_PLATFORM} #{gem_info}.\n"
  res
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.