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.12.5 lib/cairo/pattern.rb
cairo-1.12.4-x86-mingw32 lib/cairo/pattern.rb
cairo-1.12.4 lib/cairo/pattern.rb
cairo-1.12.3-x86-mingw32 lib/cairo/pattern.rb
cairo-1.12.3 lib/cairo/pattern.rb
cairo-1.12.2-x86-mingw32 lib/cairo/pattern.rb
cairo-1.12.2 lib/cairo/pattern.rb