From 955739e2a7be70e6abf7e95710ffe0f4a9c64481 Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 12 Nov 2024 21:26:10 +0100 Subject: feat: rename modules --- lib/osugiru/helpers.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/osugiru/helpers.rb (limited to 'lib/osugiru/helpers.rb') diff --git a/lib/osugiru/helpers.rb b/lib/osugiru/helpers.rb new file mode 100644 index 0000000..c493bbd --- /dev/null +++ b/lib/osugiru/helpers.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Osugiru + module Helpers + def self.header_name_from_dsl(method_name) + method_name + .to_s + .split('_') + .map(&:capitalize) + .join('-') + end + end +end -- cgit v1.2.3