Class: GitlabZOQL::Parser::Statement::Literal

Inherits:
Node
  • Object
show all
Defined in:
lib/gitlab-zoql/parser/statement.rb

Direct Known Subclasses

DateTime, Float, Integer, String

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(value) ⇒ Literal

Returns a new instance of Literal.



150
151
152
# File 'lib/gitlab-zoql/parser/statement.rb', line 150

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



154
155
156
# File 'lib/gitlab-zoql/parser/statement.rb', line 154

def value
  @value
end