From ccf1b48cf2b8bc9f7010133463a7544fdc113f89 Mon Sep 17 00:00:00 2001 From: Alex Riedler Date: Sun, 15 Dec 2024 18:17:57 -0500 Subject: [PATCH] chore: rename functions --- lib/handlebars_assets/handlebars_template.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/handlebars_assets/handlebars_template.rb b/lib/handlebars_assets/handlebars_template.rb index bc2a192..1f3ba1e 100644 --- a/lib/handlebars_assets/handlebars_template.rb +++ b/lib/handlebars_assets/handlebars_template.rb @@ -210,7 +210,7 @@ def check_extension(ext) result end - def is_haml? + def haml? result = false ::HandlebarsAssets::Config.hamlbars_extensions.each do |ext| result ||= check_extension(ext) @@ -218,7 +218,7 @@ def is_haml? result end - def is_slim? + def slim? result = false ::HandlebarsAssets::Config.slimbars_extensions.each do |ext| result ||= check_extension(ext) @@ -226,7 +226,7 @@ def is_slim? result end - def is_ember? + def ember? result = false ::HandlebarsAssets::Config.ember_extensions.each do |ext| result ||= check_extension(ext) @@ -234,7 +234,7 @@ def is_ember? result end - def is_partial? + def partial? @full_path.gsub(%r{.*/}, '').start_with?('_') end