module Nanoc::Core
Constants
- UNDEFINED
Similar to `nil` except that it can only be compared against using `UNDEFINED.equal?(x)`. Used in places where `nil` already has meaning, and thus cannot be used to mean the presence of nothing.
- VERSION
Public Class Methods
on_windows?()
click to toggle source
@return [Boolean] True if the current platform is Windows, false otherwise.
@api private
# File lib/nanoc/core.rb, line 48 def self.on_windows? @_on_windows ||= TTY::Platform.new.windows? 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).
@api private
# File lib/nanoc/core.rb, line 40 def self.version_information "Nanoc #{Nanoc::VERSION} © 2007–2021 Denis Defreyne.\n" \ "Running #{RUBY_ENGINE} #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) on #{RUBY_PLATFORM} with RubyGems #{Gem::VERSION}.\n" end