Class: Pippi::CheckSetMapper
- Inherits:
-
Object
- Object
- Pippi::CheckSetMapper
- Defined in:
- lib/pippi/check_set_mapper.rb
Instance Attribute Summary collapse
-
#predefined_sets ⇒ Object
Returns the value of attribute predefined_sets.
-
#raw_check_specifier ⇒ Object
readonly
Returns the value of attribute raw_check_specifier.
Instance Method Summary collapse
- #check_names ⇒ Object
-
#initialize(raw_check_specifier) ⇒ CheckSetMapper
constructor
A new instance of CheckSetMapper.
Constructor Details
#initialize(raw_check_specifier) ⇒ CheckSetMapper
Returns a new instance of CheckSetMapper.
6 7 8 9 |
# File 'lib/pippi/check_set_mapper.rb', line 6 def initialize(raw_check_specifier) @raw_check_specifier = raw_check_specifier define_standard_sets end |
Instance Attribute Details
#predefined_sets ⇒ Object
Returns the value of attribute predefined_sets.
4 5 6 |
# File 'lib/pippi/check_set_mapper.rb', line 4 def predefined_sets @predefined_sets end |
#raw_check_specifier ⇒ Object (readonly)
Returns the value of attribute raw_check_specifier.
3 4 5 |
# File 'lib/pippi/check_set_mapper.rb', line 3 def raw_check_specifier @raw_check_specifier end |
Instance Method Details
#check_names ⇒ Object
11 12 13 14 15 |
# File 'lib/pippi/check_set_mapper.rb', line 11 def check_names raw_check_specifier.split(',').map do |specifier| predefined_sets[specifier] || specifier end.flatten end |