Class: ReactManifest::ApplicationAnalyzer::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/react_manifest/application_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#directivesObject

Returns the value of attribute directives

Returns:

  • (Object)

    the current value of directives



32
33
34
# File 'lib/react_manifest/application_analyzer.rb', line 32

def directives
  @directives
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



32
33
34
# File 'lib/react_manifest/application_analyzer.rb', line 32

def file
  @file
end

Instance Method Details

#clean?Boolean

Returns:

  • (Boolean)


36
# File 'lib/react_manifest/application_analyzer.rb', line 36

def clean? = ux_code_lines.empty? && unknown_lines.empty?

#unknown_linesObject



35
# File 'lib/react_manifest/application_analyzer.rb', line 35

def unknown_lines = directives.select { |d| d.classification == :unknown }

#ux_code_linesObject



34
# File 'lib/react_manifest/application_analyzer.rb', line 34

def ux_code_lines = directives.select { |d| d.classification == :ux_code }

#vendor_linesObject



33
# File 'lib/react_manifest/application_analyzer.rb', line 33

def vendor_lines = directives.select { |d| d.classification == :vendor }