Class: Pippi::CheckLoader
- Inherits:
-
Object
- Object
- Pippi::CheckLoader
- Defined in:
- lib/pippi/check_loader.rb
Instance Attribute Summary collapse
-
#check_names ⇒ Object
readonly
Returns the value of attribute check_names.
-
#ctx ⇒ Object
readonly
Returns the value of attribute ctx.
Instance Method Summary collapse
- #checks ⇒ Object
-
#initialize(ctx, check_names) ⇒ CheckLoader
constructor
A new instance of CheckLoader.
Constructor Details
#initialize(ctx, check_names) ⇒ CheckLoader
Returns a new instance of CheckLoader.
5 6 7 8 9 10 11 12 |
# File 'lib/pippi/check_loader.rb', line 5 def initialize(ctx, check_names) @ctx = ctx @check_names = if check_names.is_a?(String) Pippi::CheckSetMapper.new(check_names).check_names else check_names end end |
Instance Attribute Details
#check_names ⇒ Object (readonly)
Returns the value of attribute check_names.
3 4 5 |
# File 'lib/pippi/check_loader.rb', line 3 def check_names @check_names end |
#ctx ⇒ Object (readonly)
Returns the value of attribute ctx.
3 4 5 |
# File 'lib/pippi/check_loader.rb', line 3 def ctx @ctx end |