23 lines
381 B
Ruby
23 lines
381 B
Ruby
|
module Gitlab
|
||
|
module Ci
|
||
|
class Config
|
||
|
module Entry
|
||
|
##
|
||
|
# Entry that represents Coverage settings.
|
||
|
#
|
||
|
class Coverage < Node
|
||
|
include Validatable
|
||
|
|
||
|
validations do
|
||
|
validates :config, regexp: true
|
||
|
end
|
||
|
|
||
|
def value
|
||
|
@config[1...-1]
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|