diff options
Diffstat (limited to 'lib/some/helpers.rb')
-rw-r--r-- | lib/some/helpers.rb | 13 |
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 |