diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-23 12:41:10 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-23 12:41:10 +0300 |
commit | 227e18ea43eed473e30f9e4ae6e1b150e600f903 (patch) | |
tree | eae0dac34e485ea3a80a0bbf6db19e9ab6fabae1 /lib/gitlab/ci/pipeline/expression/lexeme/null.rb | |
parent | 8c7374cafcfe77f880d45f32ff11b38d257f5373 (diff) |
Add support for evaluating pipeline expression variables
Diffstat (limited to 'lib/gitlab/ci/pipeline/expression/lexeme/null.rb')
-rw-r--r-- | lib/gitlab/ci/pipeline/expression/lexeme/null.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/lexeme/null.rb b/lib/gitlab/ci/pipeline/expression/lexeme/null.rb index 5bf06a9eee2..b62e72cde2a 100644 --- a/lib/gitlab/ci/pipeline/expression/lexeme/null.rb +++ b/lib/gitlab/ci/pipeline/expression/lexeme/null.rb @@ -10,9 +10,13 @@ module Gitlab @value = value end - def evaluate(**_) + def evaluate(_) nil end + + def self.build(value) + new(value) + end end end end |