Object
# File lib/cairo/pattern.rb, line 4 def supported?(type) type = type.to_s.gsub(%r([a-z])([A-Z])/, '\1_\2').downcase supported_predicate = "#{type}_supported?" return false unless respond_to?(supported_predicate) send(supported_predicate) end