Class: AdLint::ExaminationCatalog
- Inherits:
-
Object
- Object
- AdLint::ExaminationCatalog
- Defined in:
- lib/adlint/exam.rb
Instance Attribute Summary collapse
-
#examination_classes ⇒ Object
Returns the value of attribute examination_classes.
-
#initializer ⇒ Object
Returns the value of attribute initializer.
-
#major_version ⇒ Object
Returns the value of attribute major_version.
-
#minor_version ⇒ Object
Returns the value of attribute minor_version.
-
#name ⇒ Object
Returns the value of attribute name.
-
#patch_version ⇒ Object
Returns the value of attribute patch_version.
-
#release_date ⇒ Object
Returns the value of attribute release_date.
Instance Method Summary collapse
-
#initialize(loader_fpath) {|_self| ... } ⇒ ExaminationCatalog
constructor
A new instance of ExaminationCatalog.
- #message_definition_dpath ⇒ Object
- #short_version ⇒ Object
Constructor Details
#initialize(loader_fpath) {|_self| ... } ⇒ ExaminationCatalog
Returns a new instance of ExaminationCatalog.
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_classes ⇒ Object
Returns the value of attribute examination_classes.
139 140 141 |
# File 'lib/adlint/exam.rb', line 139 def examination_classes @examination_classes end |
#initializer ⇒ Object
Returns the value of attribute initializer.
140 141 142 |
# File 'lib/adlint/exam.rb', line 140 def initializer @initializer end |
#major_version ⇒ Object
Returns the value of attribute major_version.
135 136 137 |
# File 'lib/adlint/exam.rb', line 135 def major_version @major_version end |
#minor_version ⇒ Object
Returns the value of attribute minor_version.
136 137 138 |
# File 'lib/adlint/exam.rb', line 136 def minor_version @minor_version end |
#name ⇒ Object
Returns the value of attribute name.
134 135 136 |
# File 'lib/adlint/exam.rb', line 134 def name @name end |
#patch_version ⇒ Object
Returns the value of attribute patch_version.
137 138 139 |
# File 'lib/adlint/exam.rb', line 137 def patch_version @patch_version end |
#release_date ⇒ Object
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_dpath ⇒ Object
146 147 148 |
# File 'lib/adlint/exam.rb', line 146 def Pathname.new("etc/mesg.d/#{name}").(package_prefix) end |
#short_version ⇒ Object
142 143 144 |
# File 'lib/adlint/exam.rb', line 142 def short_version "#{major_version}.#{minor_version}.#{patch_version}" end |