/usr/lib/ruby/1.8/yadis/service.rb is in libyadis-ruby1.8 0.3.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Class representing an XRD Service element.
class ServiceEndpoint
attr_accessor :service_types, :uri, :yadis_uri, :element, :yadis, :canonical_id
def initialize
@service_types = []
@uri = nil
@yadis_uri = nil
@element = nil
@canonical_id = nil
end
def match_type_uris(type_uris)
type_uris.find_all {|t| @service_types.member?(t)}
end
def ==(other)
return self.instance_variables == other.instance_variables
end
end
|