Class: ReactManifest::ApplicationAnalyzer::Result
- Inherits:
-
Struct
- Object
- Struct
- ReactManifest::ApplicationAnalyzer::Result
- Defined in:
- lib/react_manifest/application_analyzer.rb
Instance Attribute Summary collapse
-
#directives ⇒ Object
Returns the value of attribute directives.
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
Instance Attribute Details
#directives ⇒ Object
Returns the value of attribute directives
32 33 34 |
# File 'lib/react_manifest/application_analyzer.rb', line 32 def directives @directives end |
#file ⇒ Object
Returns the value of attribute file
32 33 34 |
# File 'lib/react_manifest/application_analyzer.rb', line 32 def file @file end |
Instance Method Details
#clean? ⇒ Boolean
36 |
# File 'lib/react_manifest/application_analyzer.rb', line 36 def clean? = ux_code_lines.empty? && unknown_lines.empty? |
#unknown_lines ⇒ Object
35 |
# File 'lib/react_manifest/application_analyzer.rb', line 35 def unknown_lines = directives.select { |d| d.classification == :unknown } |
#ux_code_lines ⇒ Object
34 |
# File 'lib/react_manifest/application_analyzer.rb', line 34 def ux_code_lines = directives.select { |d| d.classification == :ux_code } |
#vendor_lines ⇒ Object
33 |
# File 'lib/react_manifest/application_analyzer.rb', line 33 def vendor_lines = directives.select { |d| d.classification == :vendor } |