class Grape::Util::Lazy::ValueArray

Public Class Methods

new(array) click to toggle source
Calls superclass method
# File lib/grape/util/lazy/value_array.rb, line 7
def initialize(array)
  super
  @value_hash = []
  array.each_with_index do |value, index|
    self[index] = value
  end
end

Public Instance Methods

evaluate() click to toggle source
# File lib/grape/util/lazy/value_array.rb, line 15
def evaluate
  @value_hash.map(&:evaluate)
end