mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Add a custom inspect string for StaticFile objects (#7422)
Merge pull request 7422
This commit is contained in:
@@ -152,6 +152,12 @@ module Jekyll
|
||||
@defaults ||= @site.frontmatter_defaults.all url, type
|
||||
end
|
||||
|
||||
# Returns a debug string on inspecting the static file.
|
||||
# Includes only the relative path of the object.
|
||||
def inspect
|
||||
"#<#{self.class} @relative_path=#{relative_path.inspect}>"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def copy_file(dest_path)
|
||||
|
||||
Reference in New Issue
Block a user