class Grape::Util::LazyValueArray
Public Class Methods
new(array)
click to toggle source
Calls superclass method
Grape::Util::LazyValue::new
# File lib/grape/util/lazy_value.rb, line 64 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.rb, line 72 def evaluate evaluated = [] @value_hash.each_with_index do |value, index| evaluated[index] = value.evaluate end evaluated end