/usr/lib/ruby/vendor_ruby/cairo/pattern.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 | module Cairo
class Pattern
class << self
def supported?(type)
type = type.to_s.gsub(/([a-z])([A-Z])/, '\\1_\\2').downcase
supported_predicate = "#{type}_supported?"
return false unless respond_to?(supported_predicate)
send(supported_predicate)
end
end
end
end
|