isRuby property

bool get isRuby

Checks if a file path or URL represents a Ruby source file.

Implementation

bool get isRuby {
  final mt = mimeType();
  return mt == 'text/x-ruby';
}