Use the proper extname getter.

This commit is contained in:
Parker Moore 2014-08-12 14:11:27 -04:00
parent 8ff9074ce5
commit 707278f099
1 changed files with 2 additions and 2 deletions

View File

@ -150,14 +150,14 @@ module Jekyll
# #
# Returns true if extname == .sass or .scss, false otherwise. # Returns true if extname == .sass or .scss, false otherwise.
def sass_file? def sass_file?
%w[.sass .scss].include?(extname) %w[.sass .scss].include?(ext)
end end
# Determine whether the document is a CoffeeScript file. # Determine whether the document is a CoffeeScript file.
# #
# Returns true if extname == .coffee, false otherwise. # Returns true if extname == .coffee, false otherwise.
def coffeescript_file? def coffeescript_file?
'.coffee'.eql?(extname) '.coffee'.eql?(ext)
end end
# Determine whether the file should be rendered with Liquid. # Determine whether the file should be rendered with Liquid.