Module: Bibliothecary::Analyser

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.create_analysis(platform_name, relative_path, kind, dependencies) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/bibliothecary/analyser.rb', line 14

def self.create_analysis(platform_name, relative_path, kind, dependencies)
  {
    platform: platform_name,
    path: relative_path,
    dependencies: dependencies,
    kind: kind,
    success: true
  }
end

.create_error_analysis(platform_name, relative_path, kind, message) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/bibliothecary/analyser.rb', line 3

def self.create_error_analysis(platform_name, relative_path, kind, message)
  {
    platform: platform_name,
    path: relative_path,
    dependencies: nil,
    kind: kind,
    success: false,
    error_message: message
  }
end

.included(base) ⇒ Object



24
25
26
# File 'lib/bibliothecary/analyser.rb', line 24

def self.included(base)
  base.extend(ClassMethods)
end