aboutsummaryrefslogtreecommitdiff
path: root/lib/osugiru/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/osugiru/helpers.rb')
-rw-r--r--lib/osugiru/helpers.rb13
1 files changed, 13 insertions, 0 deletions
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