Sha256: bcd7db0edc383d3b1ef3737c8e7d0541fd631cfc76bba08ba4613c4502f0d496

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

class Manage_list
attr_reader :list_detail
@@processing_number = 0
  def initialize
    @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.10 lib/manage_list.rb
jishan_fast_track_gem-0.1.9 lib/manage_lists.rb
jishan_fast_track_gem-0.1.8 lib/manage_lists.rb