Skip to content

Commit

Permalink
chore: rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRiedler committed Dec 15, 2024
1 parent 7ca9765 commit ccf1b48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/handlebars_assets/handlebars_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,31 +210,31 @@ def check_extension(ext)
result
end

def is_haml?
def haml?
result = false
::HandlebarsAssets::Config.hamlbars_extensions.each do |ext|
result ||= check_extension(ext)
end
result
end

def is_slim?
def slim?
result = false
::HandlebarsAssets::Config.slimbars_extensions.each do |ext|
result ||= check_extension(ext)
end
result
end

def is_ember?
def ember?
result = false
::HandlebarsAssets::Config.ember_extensions.each do |ext|
result ||= check_extension(ext)
end
result
end

def is_partial?
def partial?
@full_path.gsub(%r{.*/}, '').start_with?('_')
end

Expand Down

0 comments on commit ccf1b48

Please sign in to comment.