Add custom debug strings for Jekyll objects (#8473)
Merge pull request 8473
This commit is contained in:
parent
8a01e6aed9
commit
a7e1ec901b
|
@ -58,5 +58,10 @@ module Jekyll
|
||||||
def process(name)
|
def process(name)
|
||||||
self.ext = File.extname(name)
|
self.ext = File.extname(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns the object as a debug String.
|
||||||
|
def inspect
|
||||||
|
"#<#{self.class} @path=#{@path.inspect}>"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -442,6 +442,13 @@ module Jekyll
|
||||||
@collections_path ||= dir_str.empty? ? source : in_source_dir(dir_str)
|
@collections_path ||= dir_str.empty? ? source : in_source_dir(dir_str)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Public
|
||||||
|
#
|
||||||
|
# Returns the object as a debug String.
|
||||||
|
def inspect
|
||||||
|
"#<#{self.class} @source=#{@source}>"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def load_theme_configuration(config)
|
def load_theme_configuration(config)
|
||||||
|
|
Loading…
Reference in New Issue