Sha256: 7dd1e89d37b52cb79f1fcddd6fa34144b5b9effcc18153a1538d8d9511056057

Contents?: true

Size: 314 Bytes

Versions: 107

Compression:

Stored size: 314 Bytes

Contents

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

Version data entries

107 entries across 99 versions & 2 rubygems

Version Path
cairo-1.17.13 lib/cairo/device.rb
cairo-1.17.12 lib/cairo/device.rb
cairo-1.17.11 lib/cairo/device.rb
cairo-1.17.10 lib/cairo/device.rb
cairo-1.17.9 lib/cairo/device.rb
cairo-1.17.8 lib/cairo/device.rb
cairo-1.17.7 lib/cairo/device.rb
cairo-1.17.6 lib/cairo/device.rb
cairo-1.17.5 lib/cairo/device.rb
cairo-1.17.4 lib/cairo/device.rb
cairo-1.16.6 lib/cairo/device.rb
cairo-1.16.5 lib/cairo/device.rb
cairo-1.16.4 lib/cairo/device.rb
cairo-1.16.3 lib/cairo/device.rb
cairo-1.16.2 lib/cairo/device.rb
cairo-1.16.1-x86-mingw32 lib/cairo/device.rb
cairo-1.16.1-x64-mingw32 lib/cairo/device.rb
cairo-1.16.1 lib/cairo/device.rb
cairo-1.16.0-x86-mingw32 lib/cairo/device.rb
cairo-1.16.0-x64-mingw32 lib/cairo/device.rb