aboutsummaryrefslogtreecommitdiff
path: root/lib/some/helpers.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-07 14:57:41 +0100
committermms <git@sapka.me>2024-11-07 14:57:41 +0100
commitacc8415d7109e8fb45bbfcd8cf545ebcf5b5d16a (patch)
tree1c8b1ec2efbd7602fa972aa7dbd6e8baa63ef515 /lib/some/helpers.rb
init spike
Diffstat (limited to 'lib/some/helpers.rb')
-rw-r--r--lib/some/helpers.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/some/helpers.rb b/lib/some/helpers.rb
new file mode 100644
index 0000000..5842f73
--- /dev/null
+++ b/lib/some/helpers.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Some
+ module Helpers
+ def header_name_from_dsl(method_name)
+ method_name
+ .to_s
+ .split('_')
+ .map(&:capitalize)
+ .join('-')
+ end
+ end
+end