Sha256: ec8896d4ee6dd07ba755b24e9516d5230867948cfac28da203be1c3b34e08222

Contents?: true

Size: 139 Bytes

Versions: 2

Compression:

Stored size: 139 Bytes

Contents

module Thanos
  class StringActions
    def self.parameterize(string)
      string.split(/(?=[A-Z])/).join('_').downcase
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thanos-0.6.0 lib/thanos/string_actions.rb
thanos-0.5.0 lib/thanos/string_actions.rb