Class: Fontisan::Commands::ValidateCollectionCommand::Check
- Inherits:
-
Struct
- Object
- Struct
- Fontisan::Commands::ValidateCollectionCommand::Check
- Defined in:
- lib/fontisan/commands/validate_collection_command.rb
Overview
Per-check result. The message is nil on pass.
Instance Attribute Summary collapse
-
#message ⇒ String?
readonly
Human-readable failure detail.
-
#name ⇒ Symbol
readonly
Check identifier (:face_count, :glyph_cap, :cmap_union).
- #passed ⇒ Boolean readonly
Instance Method Summary collapse
-
#passed? ⇒ Boolean
Predicate form so callers can write
check.passed?instead ofcheck.passed.
Instance Attribute Details
#message ⇒ String? (readonly)
Returns 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 |
#name ⇒ Symbol (readonly)
Returns 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 |
#passed ⇒ Boolean (readonly)
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.
30 31 32 |
# File 'lib/fontisan/commands/validate_collection_command.rb', line 30 def passed? passed end |