Class: Gitlab::Ci::Pipeline::Expression::Lexeme::Value

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/expression/lexeme/value.rb

Direct Known Subclasses

Null, Pattern, String, Variable

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

build, consume?, #evaluate, #name, pattern, scan

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.


13
14
15
# File 'lib/gitlab/ci/pipeline/expression/lexeme/value.rb', line 13

def initialize(value)
  @value = value
end

Class Method Details

.typeObject


9
10
11
# File 'lib/gitlab/ci/pipeline/expression/lexeme/value.rb', line 9

def self.type
  :value
end