diff options
-rw-r--r-- | lib/gitlab/ci/pipeline/expression/null.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/null.rb b/lib/gitlab/ci/pipeline/expression/null.rb new file mode 100644 index 00000000000..d33f0bffc48 --- /dev/null +++ b/lib/gitlab/ci/pipeline/expression/null.rb @@ -0,0 +1,19 @@ +module Gitlab + module Ci + module Pipeline + module Expression + class Null < Expression::Token + PATTERN = /null/.freeze + + def initialize(value) + @value = value + end + + def evaluate(**_) + nil + end + end + end + end + end +end |