Sha256: 1c8ac7c73cc54c4ad91548e05f445e54c14579c7be67298195c195832f1a3495
Contents?: true
Size: 226 Bytes
Versions: 24
Compression:
Stored size: 226 Bytes
Contents
require 'pathname' module Awestruct module Extensions module Relative def relative(href) Pathname.new(href).relative_path_from(Pathname.new(File.dirname(page.output_path))).to_s end end end end
Version data entries
24 entries across 24 versions & 2 rubygems