From acc8415d7109e8fb45bbfcd8cf545ebcf5b5d16a Mon Sep 17 00:00:00 2001 From: mms Date: Thu, 7 Nov 2024 14:57:41 +0100 Subject: init spike --- lib/some/helpers.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/some/helpers.rb (limited to 'lib/some/helpers.rb') 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 -- cgit v1.2.3