Method: Wiki2Go::GreyList#initialize

Defined in:
lib/Wiki2Go/GreyList.rb

#initialize(name, items) ⇒ GreyList

Returns a new instance of GreyList.



39
40
41
42
43
44
45
46
# File 'lib/Wiki2Go/GreyList.rb', line 39

def initialize(name,items)
  @name   = name
  items = items.collect {|line| 
    user, url = line.strip.split
    (user.nil? || url.nil? ? nil : Suspect.new(user,url))
  }
  @banned = items.compact
end