Sha256: c9f2c61136172b0d1735a9aa2580677dcccbfc4ab0be8f9fa760a7f312fc6a94

Contents?: true

Size: 226 Bytes

Versions: 37

Compression:

Stored size: 226 Bytes

Contents

def fetch_params params
  Env.params.select { |key, val| val && params.include?(key) }
     .with_indifferent_access
end

def param_to_i key, default
  if (value = Env.params[key])
    value.to_i
  else
    default
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
card-1.96.2 mod/utility/set/abstract/utility.rb
card-1.96.1 mod/utility/set/abstract/utility.rb
card-1.96.0 mod/utility/set/abstract/utility.rb
card-1.95.3 mod/utility/set/abstract/utility.rb
card-1.95.2 mod/utility/set/abstract/utility.rb
card-1.95.1 mod/utility/set/abstract/utility.rb
card-1.95.0 mod/utility/set/abstract/utility.rb
card-1.94.1 mod/utility/set/abstract/utility.rb
card-1.94.0 mod/utility/set/abstract/utility.rb
card-1.93.13 mod/utility/set/abstract/utility.rb
card-1.93.12 mod/utility/set/abstract/utility.rb
card-1.93.11 mod/utility/set/abstract/utility.rb
card-1.93.10 mod/utility/set/abstract/utility.rb
card-1.93.9 mod/utility/set/abstract/utility.rb
card-1.93.8 mod/utility/set/abstract/utility.rb
card-1.93.7 mod/utility/set/abstract/utility.rb
card-1.93.6 mod/utility/set/abstract/utility.rb