Rubocop cleanup for lib/jekyll/layout.rb

This commit is contained in:
Brint O'Hearn 2016-05-23 21:12:31 -05:00 committed by Pat Hawks
parent 65e78b3280
commit de39107c76
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,6 @@ AllCops:
- lib/jekyll/entry_filter.rb
- lib/jekyll/filters.rb
- lib/jekyll/frontmatter_defaults.rb
- lib/jekyll/layout.rb
- lib/jekyll/liquid_renderer/table.rb
- lib/jekyll/liquid_renderer.rb
- lib/jekyll/reader.rb

View File

@ -58,7 +58,9 @@ module Jekyll
# Returns a String path which represents the relative path
# from the site source to this layout
def relative_path
@relative_path ||= Pathname.new(path).relative_path_from(Pathname.new(@base_dir)).to_s
@relative_path ||= Pathname.new(path).relative_path_from(
Pathname.new(@base_dir)
).to_s
end
end
end