class Nanoc::Core::Assertions::PathIsAbsolute

Public Class Methods

new(path:) click to toggle source
# File lib/nanoc/core/assertions.rb, line 46
def initialize(path:)
  @path = path
end

Public Instance Methods

call() click to toggle source
# File lib/nanoc/core/assertions.rb, line 51
def call
  Pathname.new(@path).absolute?
end