module Params::Base

Public Instance Methods

clean_params(params) click to toggle source
# File lib/params/base.rb, line 3
def clean_params params
  Hash[params.collect do |key, value|
    value = nil if value == "na"
    [key, value]
    end
  ]
end
crypter?() click to toggle source
# File lib/params/base.rb, line 15
def crypter?
  !(@crypter == false)
end
crypter_off!() click to toggle source
# File lib/params/base.rb, line 19
def crypter_off!
  @crypter = false
end
crypter_on!() click to toggle source
# File lib/params/base.rb, line 23
def crypter_on!
  @crypter = true
end
use_crypter?() click to toggle source
# File lib/params/base.rb, line 11
def use_crypter?
  crypter? || Params::Crypter.on?
end