Class: Lkml::CommaSeparatedValues
- Inherits:
-
Object
- Object
- Lkml::CommaSeparatedValues
- Defined in:
- lib/lkml/parser.rb
Instance Attribute Summary collapse
-
#leading_comma ⇒ Object
Returns the value of attribute leading_comma.
-
#trailing_comma ⇒ Object
Returns the value of attribute trailing_comma.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
- #append(value) ⇒ Object
- #frozen_tuple ⇒ Object
-
#initialize ⇒ CommaSeparatedValues
constructor
A new instance of CommaSeparatedValues.
Constructor Details
#initialize ⇒ CommaSeparatedValues
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_comma ⇒ Object
Returns the value of attribute leading_comma.
18 19 20 |
# File 'lib/lkml/parser.rb', line 18 def leading_comma @leading_comma end |
#trailing_comma ⇒ Object
Returns the value of attribute trailing_comma.
18 19 20 |
# File 'lib/lkml/parser.rb', line 18 def trailing_comma @trailing_comma end |
#values ⇒ Object
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_tuple ⇒ Object
30 31 32 |
# File 'lib/lkml/parser.rb', line 30 def frozen_tuple @values.dup.freeze end |