Sha256: e5e89ab5437d118892dd8c7c2bae226d96dd63f6ab05d123475a9838fa6e6c33

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

module Rasti
  module DB
    module NQL
      module Nodes
        class ArrayContent < Treetop::Runtime::SyntaxNode

          def values
            [left.value] + right_value
          end

          private

          def right_value
            right.is_a?(self.class) ? right.values : [right.value]
          end

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rasti-db-4.2.0 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-4.1.1 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-4.1.0 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-4.0.0 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-3.0.0 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-2.3.3 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-2.3.2 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-2.3.1 lib/rasti/db/nql/nodes/array_content.rb
rasti-db-2.3.0 lib/rasti/db/nql/nodes/array_content.rb