class Estreet::ArrayExpression

Public Class Methods

new(elements) click to toggle source
# File lib/estreet/array_expression.rb, line 3
def initialize(elements)
  @elements = elements.map do |e|
    # TODO: is it OK to coerce here?
    e.nil? ? e : Expression.coerce(e)
  end
end

Public Instance Methods

attributes() click to toggle source
Calls superclass method
# File lib/estreet/array_expression.rb, line 10
def attributes
  super.merge(elements: @elements)
end