mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-06 00:35:46 +00:00
23 lines
562 B
Ruby
23 lines
562 B
Ruby
# frozen_string_literal: true
|
|
|
|
module CoreExtensions
|
|
module Jekyll
|
|
module Document
|
|
# Permite cambiar la ubicación del archivo para que podamos leerlo
|
|
# sin tener que instanciar uno nuevo.
|
|
module Path
|
|
def path=(new_path)
|
|
@path = new_path
|
|
# Dejar que lo recalcule al releer
|
|
@cleaned_relative_path =
|
|
@extname =
|
|
@basename =
|
|
@basename_without_ext =
|
|
@output_ext =
|
|
@relative_path = nil
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|