# File jabber4r/roster.rb, line 155 def add(resourceName, show, status) resource = Resource.new(self, resourceName, show, status) @resources[resourceName] = resource @roster.notify_listeners(RESOURCE_ADDED, resource) resource end