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.100.0 mod/utility/set/abstract/utility.rb
card-1.99.6 mod/utility/set/abstract/utility.rb
card-1.99.5 mod/utility/set/abstract/utility.rb
card-1.99.4 mod/utility/set/abstract/utility.rb
card-1.99.3 mod/utility/set/abstract/utility.rb
card-1.99.2 mod/utility/set/abstract/utility.rb
card-1.99.1 mod/utility/set/abstract/utility.rb
card-1.99.0 mod/utility/set/abstract/utility.rb
card-1.98.3 mod/utility/set/abstract/utility.rb
card-1.98.2 mod/utility/set/abstract/utility.rb
card-1.98.1 mod/utility/set/abstract/utility.rb
card-1.98.0 mod/utility/set/abstract/utility.rb
card-1.97.0.1 mod/utility/set/abstract/utility.rb
card-1.97.0 mod/utility/set/abstract/utility.rb
card-1.96.8 mod/utility/set/abstract/utility.rb
card-1.96.7 mod/utility/set/abstract/utility.rb
card-1.96.6 mod/utility/set/abstract/utility.rb
card-1.96.5 mod/utility/set/abstract/utility.rb
card-1.96.4 mod/utility/set/abstract/utility.rb
card-1.96.3 mod/utility/set/abstract/utility.rb