class BCrypt::Engine

def self.cost

creating a password hash. Defaults to DEFAULT_COST if not set.
Returns the cost factor that will be used if one is not specified when
def self.cost
  @cost || DEFAULT_COST
end