Class: AdLint::ProjectTraits::TargetFiles
- Inherits:
-
Object
- Object
- AdLint::ProjectTraits::TargetFiles
- Includes:
- CompoundPathParser, Validation
- Defined in:
- lib/adlint/traits.rb
Instance Attribute Summary collapse
-
#exclusion_paths ⇒ Object
readonly
Returns the value of attribute exclusion_paths.
-
#inclusion_paths ⇒ Object
readonly
Returns the value of attribute inclusion_paths.
Instance Method Summary collapse
- #entity_name ⇒ Object
- #freeze ⇒ Object
-
#initialize(doc) ⇒ TargetFiles
constructor
A new instance of TargetFiles.
Methods included from CompoundPathParser
parse_compound_path_list, parse_compound_path_str
Methods included from Validation
#ensure_dir_presence_of, #ensure_dirs_presence_of, #ensure_exam_packages_presence_of, #ensure_file_presence_of, #ensure_inclusion_of, #ensure_numericality_of, #ensure_presence_of, #ensure_true_or_false_of, #ensure_validity_of, #ensure_with, #errors, included, #valid?, #validators
Constructor Details
#initialize(doc) ⇒ TargetFiles
Returns a new instance of TargetFiles.
144 145 146 147 |
# File 'lib/adlint/traits.rb', line 144 def initialize(doc) @inclusion_paths = parse_compound_path_list(doc["inclusion_paths"]) @exclusion_paths = parse_compound_path_list(doc["exclusion_paths"]) end |
Instance Attribute Details
#exclusion_paths ⇒ Object (readonly)
Returns the value of attribute exclusion_paths.
156 157 158 |
# File 'lib/adlint/traits.rb', line 156 def exclusion_paths @exclusion_paths end |
#inclusion_paths ⇒ Object (readonly)
Returns the value of attribute inclusion_paths.
153 154 155 |
# File 'lib/adlint/traits.rb', line 153 def inclusion_paths @inclusion_paths end |
Instance Method Details
#entity_name ⇒ Object
149 150 151 |
# File 'lib/adlint/traits.rb', line 149 def entity_name "project_traits:target_files" end |
#freeze ⇒ Object
159 160 161 162 163 |
# File 'lib/adlint/traits.rb', line 159 def freeze @inclusion_paths.freeze @exclusion_paths.freeze super end |