Sha256: f19c8cbd20bd0920b9b38c0de385f6a7668507ff0590f61aa66f4c2eeab4bcd1

Contents?: true

Size: 179 Bytes

Versions: 49

Compression:

Stored size: 179 Bytes

Contents

# Process white list
module AwesomeBot
  class << self
    def white_list(list, item)
      list.each { |x| return true if item.include? x }
      false
    end
  end # class
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
awesome_bot-1.20.0 lib/awesome_bot/white_list.rb
awesome_bot-1.19.1 lib/awesome_bot/white_list.rb
awesome_bot-1.19.0 lib/awesome_bot/white_list.rb
awesome_bot-1.18.0 lib/awesome_bot/white_list.rb
awesome_bot-1.17.2 lib/awesome_bot/white_list.rb
awesome_bot-1.17.1 lib/awesome_bot/white_list.rb
awesome_bot-1.17.0 lib/awesome_bot/white_list.rb
awesome_bot-1.16.1 lib/awesome_bot/white_list.rb
awesome_bot-1.16.0 lib/awesome_bot/white_list.rb
awesome_bot-1.15.0 lib/awesome_bot/white_list.rb
awesome_bot-1.14.0 lib/awesome_bot/white_list.rb
awesome_bot-1.13.10 lib/awesome_bot/white_list.rb
awesome_bot-1.13.9 lib/awesome_bot/white_list.rb
awesome_bot-1.13.8 lib/awesome_bot/white_list.rb
awesome_bot-1.13.7 lib/awesome_bot/white_list.rb
awesome_bot-1.13.6 lib/awesome_bot/white_list.rb
awesome_bot-1.13.5 lib/awesome_bot/white_list.rb
awesome_bot-1.13.4 lib/awesome_bot/white_list.rb
awesome_bot-1.13.3 lib/awesome_bot/white_list.rb
awesome_bot-1.13.2 lib/awesome_bot/white_list.rb