Sha256: 8e72f9fdf69d2f0401d3e5170f5d0b6c6e24749a97c52f71fab5276695afbc64

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

module Humidifier
  # Dumps an object to CFN syntax
  module Utils
    # a frozen hash of the given names mapped to their underscored version
    def self.underscored(names)
      names.map { |name| [name, underscore(name).to_sym] }.to_h.freeze
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
humidifier-1.6.0 lib/humidifier/utils.rb
humidifier-1.4.2 lib/humidifier/utils.rb
humidifier-1.4.1 lib/humidifier/utils.rb
humidifier-1.4.0 lib/humidifier/utils.rb
humidifier-1.3.1 lib/humidifier/utils.rb
humidifier-1.2.1 lib/humidifier/utils.rb