Class: Glslkit::Diagnostic
- Inherits:
-
Struct
- Object
- Struct
- Glslkit::Diagnostic
- Defined in:
- lib/glslkit/diagnostic.rb
Overview
検証結果1件分(§8.2)。file/lineの解決はValidatorの役目であり、 DiagnosticやReflection自身は関与しない。
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
-
#program ⇒ Object
Returns the value of attribute program.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#stage ⇒ Object
Returns the value of attribute stage.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def code @code end |
#file ⇒ Object
Returns the value of attribute file
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def file @file end |
#line ⇒ Object
Returns the value of attribute line
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def line @line end |
#message ⇒ Object
Returns the value of attribute message
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def @message end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def name @name end |
#program ⇒ Object
Returns the value of attribute program
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def program @program end |
#severity ⇒ Object
Returns the value of attribute severity
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def severity @severity end |
#stage ⇒ Object
Returns the value of attribute stage
6 7 8 |
# File 'lib/glslkit/diagnostic.rb', line 6 def stage @stage end |
Instance Method Details
#error? ⇒ Boolean
7 8 9 |
# File 'lib/glslkit/diagnostic.rb', line 7 def error? severity == :error end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/glslkit/diagnostic.rb', line 15 def to_s "[#{code}] #{location}: #{}" end |
#warning? ⇒ Boolean
11 12 13 |
# File 'lib/glslkit/diagnostic.rb', line 11 def warning? severity == :warning end |