Class: Cel::List
- Defined in:
- lib/cel/ast/elements.rb
Instance Attribute Summary
Attributes inherited from Literal
Instance Method Summary collapse
-
#initialize(value) ⇒ List
constructor
A new instance of List.
- #to_ary ⇒ Object
Methods inherited from Literal
Constructor Details
#initialize(value) ⇒ List
Returns a new instance of List.
289 290 291 292 293 294 |
# File 'lib/cel/ast/elements.rb', line 289 def initialize(value) value = value.map do |v| Literal.to_cel_type(v) end super(ListType.new(value), value) end |
Instance Method Details
#to_ary ⇒ Object
296 297 298 |
# File 'lib/cel/ast/elements.rb', line 296 def to_ary [self] end |