File: device.rb

package info (click to toggle)
ruby-cairo 1.17.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,532 kB
  • sloc: ruby: 11,997; ansic: 10,183; sh: 48; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (7)
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