Sha256: 5978f9c2d13333fb6833efb5cda84d4ac9345eb58118b0b90db2098494ab9db1

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

class ManageList
  attr_reader :list_detail
  @@processing_number = 0
  def initialize(name)
    @name = name
    @list_detail = []
  end

  def self.display_processing_number
    @@processing_number
  end

  def add_applicant(name)
    @list_detail << name
    @@processing_number += 1
  end

  def remove_applicant(name)
    @list_detail.delete(name)
    @@processing_number -= 1
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jishan_fast_track_gem-0.1.21 lib/manage_list.rb
jishan_fast_track_gem-0.1.20 lib/manage_list.rb
jishan_fast_track_gem-0.1.19 lib/manage_list.rb