Class: AdLint::ExaminationCatalog

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/exam.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loader_fpath) {|_self| ... } ⇒ ExaminationCatalog

Returns a new instance of ExaminationCatalog.

Yields:

  • (_self)

Yield Parameters:



128
129
130
131
132
# File 'lib/adlint/exam.rb', line 128

def initialize(loader_fpath)
  @loader_fpath = loader_fpath
  @initializer = lambda {}
  yield(self) if block_given?
end

Instance Attribute Details

#examination_classesObject

Returns the value of attribute examination_classes.



139
140
141
# File 'lib/adlint/exam.rb', line 139

def examination_classes
  @examination_classes
end

#initializerObject

Returns the value of attribute initializer.



140
141
142
# File 'lib/adlint/exam.rb', line 140

def initializer
  @initializer
end

#major_versionObject

Returns the value of attribute major_version.



135
136
137
# File 'lib/adlint/exam.rb', line 135

def major_version
  @major_version
end

#minor_versionObject

Returns the value of attribute minor_version.



136
137
138
# File 'lib/adlint/exam.rb', line 136

def minor_version
  @minor_version
end

#nameObject

Returns the value of attribute name.



134
135
136
# File 'lib/adlint/exam.rb', line 134

def name
  @name
end

#patch_versionObject

Returns the value of attribute patch_version.



137
138
139
# File 'lib/adlint/exam.rb', line 137

def patch_version
  @patch_version
end

#release_dateObject

Returns the value of attribute release_date.



138
139
140
# File 'lib/adlint/exam.rb', line 138

def release_date
  @release_date
end

Instance Method Details

#message_definition_dpathObject



146
147
148
# File 'lib/adlint/exam.rb', line 146

def message_definition_dpath
  Pathname.new("etc/mesg.d/#{name}").expand_path(package_prefix)
end

#short_versionObject



142
143
144
# File 'lib/adlint/exam.rb', line 142

def short_version
  "#{major_version}.#{minor_version}.#{patch_version}"
end