Add custom debug strings for Jekyll objects (#8473)

Merge pull request 8473
This commit is contained in:
Ashwin Maroli 2020-11-18 16:13:38 +05:30 committed by GitHub
parent 8a01e6aed9
commit a7e1ec901b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -58,5 +58,10 @@ module Jekyll
def process(name)
self.ext = File.extname(name)
end
# Returns the object as a debug String.
def inspect
"#<#{self.class} @path=#{@path.inspect}>"
end
end
end

View File

@ -442,6 +442,13 @@ module Jekyll
@collections_path ||= dir_str.empty? ? source : in_source_dir(dir_str)
end
# Public
#
# Returns the object as a debug String.
def inspect
"#<#{self.class} @source=#{@source}>"
end
private
def load_theme_configuration(config)