5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-03 00:36:08 +00:00
panel/app/lib/core_extensions/jekyll/document/path.rb
2019-08-08 15:40:31 -03:00

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