require "forwardable" require "rabbit/utils" require "rabbit/image/base" module Rabbit module ImageManipulable class Dia < Base unshift_loader(self) DIA_COMMANDS = %w(dia) extend Forwardable include SystemRunner class << self def match?(filename) return true if File.extname(filename).downcase.end_with?(".dia") File.open(filename) do |f| first_line = f.gets second_line = f.gets return false unless second_line return false unless first_line.start_with?("