class Punchblock::URIList

Public Class Methods

import(string) click to toggle source
# File lib/punchblock/uri_list.rb, line 5
def self.import(string)
  new string.strip.split("\n").map(&:strip)
end
new(*list) click to toggle source
Calls superclass method
# File lib/punchblock/uri_list.rb, line 9
def initialize(*list)
  super list.flatten
end

Public Instance Methods

==(other) click to toggle source
# File lib/punchblock/uri_list.rb, line 17
def ==(other)
  self.__getobj__ == other.to_ary
end
to_s() click to toggle source
# File lib/punchblock/uri_list.rb, line 13
def to_s
  join("\n")
end