Sha256: 87a47aca95445b6eaf041d23b4d3a93af1a4990a1227d74a2d4789d3c2944adf
Contents?: true
Size: 396 Bytes
Versions: 6
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module Grape module Util module Lazy class ValueArray < ValueEnumerable def initialize(array) super @value_hash = [] array.each_with_index do |value, index| self[index] = value end end def evaluate @value_hash.map(&:evaluate) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems