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
34 35 36 |
# File 'lib/react_manifest/application_analyzer.rb', line 34 def directives @directives end |
#file ⇒ Object
Returns the value of attribute file
34 35 36 |
# File 'lib/react_manifest/application_analyzer.rb', line 34 def file @file end |
Instance Method Details
#clean? ⇒ Boolean
38 |
# File 'lib/react_manifest/application_analyzer.rb', line 38 def clean? = ux_code_lines.empty? && unknown_lines.empty? |
#unknown_lines ⇒ Object
37 |
# File 'lib/react_manifest/application_analyzer.rb', line 37 def unknown_lines = directives.select { |d| d.classification == :unknown } |
#ux_code_lines ⇒ Object
36 |
# File 'lib/react_manifest/application_analyzer.rb', line 36 def ux_code_lines = directives.select { |d| d.classification == :ux_code } |
#vendor_lines ⇒ Object
35 |
# File 'lib/react_manifest/application_analyzer.rb', line 35 def vendor_lines = directives.select { |d| d.classification == :vendor } |