Class: Fontisan::Commands::ValidateCollectionCommand::Check

Inherits:
Struct
  • Object
show all
Defined in:
lib/fontisan/commands/validate_collection_command.rb

Overview

Per-check result. The message is nil on pass.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageString? (readonly)

Returns human-readable failure detail.

Returns:

  • (String, nil)

    human-readable failure detail



26
27
28
29
30
31
32
33
# File 'lib/fontisan/commands/validate_collection_command.rb', line 26

Check = Struct.new(:name, :passed, :message, keyword_init: true) do
  # Predicate form so callers can write +check.passed?+ instead of
  # +check.passed+. Struct does not provide the +?+ suffix
  # automatically.
  def passed?
    passed
  end
end

#nameSymbol (readonly)

Returns check identifier (:face_count, :glyph_cap, :cmap_union).

Returns:

  • (Symbol)

    check identifier (:face_count, :glyph_cap, :cmap_union)



26
27
28
29
30
31
32
33
# File 'lib/fontisan/commands/validate_collection_command.rb', line 26

Check = Struct.new(:name, :passed, :message, keyword_init: true) do
  # Predicate form so callers can write +check.passed?+ instead of
  # +check.passed+. Struct does not provide the +?+ suffix
  # automatically.
  def passed?
    passed
  end
end

#passedBoolean (readonly)

Returns:

  • (Boolean)


26
27
28
29
30
31
32
33
# File 'lib/fontisan/commands/validate_collection_command.rb', line 26

Check = Struct.new(:name, :passed, :message, keyword_init: true) do
  # Predicate form so callers can write +check.passed?+ instead of
  # +check.passed+. Struct does not provide the +?+ suffix
  # automatically.
  def passed?
    passed
  end
end

Instance Method Details

#passed?Boolean

Predicate form so callers can write check.passed? instead of check.passed. Struct does not provide the ? suffix automatically.

Returns:

  • (Boolean)


30
31
32
# File 'lib/fontisan/commands/validate_collection_command.rb', line 30

def passed?
  passed
end