Class: Pippi::CheckSetMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/pippi/check_set_mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_setsObject

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_specifierObject (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_namesObject



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