Module: Yarr::NoIRC

Defined in:
lib/yarr/no_irc.rb

Overview

Null object for no IRC connection

Class Method Summary collapse

Class Method Details

.user_list#find

Returns a user list on which find always returns nil

Returns:

  • (#find)

    empty user list


6
7
8
9
10
# File 'lib/yarr/no_irc.rb', line 6

def self.user_list
  Object.new.tap do |obj|
    obj.singleton_class.define_method(:find) { |*args| }
  end
end