Sha256: aaa417036ab640f960d30dadbcd4682091672c994f5c1a8e8c54e8376699d3dd

Contents?: true

Size: 316 Bytes

Versions: 107

Compression:

Stored size: 316 Bytes

Contents

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

Version data entries

107 entries across 99 versions & 2 rubygems

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