/usr/lib/ruby/vendor_ruby/cairo/device.rb is in ruby-cairo 1.12.9-1build6.
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 | module Cairo
if const_defined?(:Device)
class Device
class << self
def supported?(type)
supported_predicate = "#{type.to_s.downcase}_supported?"
return false unless respond_to?(supported_predicate)
send(supported_predicate)
end
end
end
end
end
|