Sha256: 8251d5edb196b393822eca1d62fff4183eef4cb08f55aea9f1bb0b2f5a3c6009

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

module MKIt
  module ParamsHelper

    def build_options_hash(params:, options:)
      hash = {}
      options.each do |option|
        hash[option] = params[option]
      end
      hash
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mkit-0.9.0 lib/mkit/app/helpers/params_helper.rb
mkit-0.8.0 lib/mkit/app/helpers/params_helper.rb