Sha256: 7994d75107b017eae2c1432edd58dd60a10ed5664e51d9fbf27f81240c5c00a1

Contents?: true

Size: 210 Bytes

Versions: 18

Compression:

Stored size: 210 Bytes

Contents

module Ridley
  module Helpers
    def self.options_slice(options, *keys)
      keys.inject({}) do |memo, key|
        memo[key] = options[key] if options.include?(key)
        memo
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ridley-5.1.1 lib/ridley/helpers.rb
ridley-5.1.0 lib/ridley/helpers.rb
ridley-5.0.0 lib/ridley/helpers.rb
ridley-4.6.1 lib/ridley/helpers.rb
ridley-4.6.0 lib/ridley/helpers.rb
ridley-4.5.1 lib/ridley/helpers.rb
ridley-4.5.0 lib/ridley/helpers.rb
ridley-4.4.3 lib/ridley/helpers.rb
ridley-4.4.2 lib/ridley/helpers.rb
ridley-4.4.1 lib/ridley/helpers.rb
ridley-4.4.0 lib/ridley/helpers.rb
ridley-4.3.2 lib/ridley/helpers.rb
ridley-4.3.1 lib/ridley/helpers.rb
ridley-4.3.0 lib/ridley/helpers.rb
ridley-4.2.0 lib/ridley/helpers.rb
ridley-4.1.2 lib/ridley/helpers.rb
ridley-4.1.1 lib/ridley/helpers.rb
ridley-4.1.0 lib/ridley/helpers.rb