aboutsummaryrefslogtreecommitdiff
path: root/lib/osugiru/helpers.rb
blob: c493bbdd36864f62cd30ae0cc5523d0441be3281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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