Class: Lkml::CommaSeparatedValues

Inherits:
Object
  • Object
show all
Defined in:
lib/lkml/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommaSeparatedValues

Returns a new instance of CommaSeparatedValues.



20
21
22
23
24
# File 'lib/lkml/parser.rb', line 20

def initialize
  @values = []
  @trailing_comma = nil
  @leading_comma = nil
end

Instance Attribute Details

#leading_commaObject

Returns the value of attribute leading_comma.



18
19
20
# File 'lib/lkml/parser.rb', line 18

def leading_comma
  @leading_comma
end

#trailing_commaObject

Returns the value of attribute trailing_comma.



18
19
20
# File 'lib/lkml/parser.rb', line 18

def trailing_comma
  @trailing_comma
end

#valuesObject

Returns the value of attribute values.



18
19
20
# File 'lib/lkml/parser.rb', line 18

def values
  @values
end

Instance Method Details

#append(value) ⇒ Object



26
27
28
# File 'lib/lkml/parser.rb', line 26

def append(value)
  @values << value
end

#frozen_tupleObject



30
31
32
# File 'lib/lkml/parser.rb', line 30

def frozen_tuple
  @values.dup.freeze
end