app/models/concerns/writes_named_variable_dates.rb
# Write a value to the cache. Until the record is saved or reloaded, any attempt
# to {#named_variable_date_value_for read the value} will defer to the cache
#
# @param [String] name
# @param [String, VariablePrecisionDate, Date] value (@see VariablePrecision::ParseDate)
# @return [void]
Write a value to the cache. Until the record is saved or reloaded, any attempt
to {#named_variable_date_value_for read the value} will defer to the cache
Write a value to the cache . Until the record is saved or reloaded any attempt to { #named_variable_date_value_for read the value } will defer to the cache
def write_named_variable_date!(name, value)
    parsed = WDPAPI::Container["variable_precision.parse_date"].call(value).value!
    named_variable_date_cache[name] = parsed
  end
def write_named_variable_date! ( name , value ) parsed = WDPAPI :: Container [ "variable_precision.parse_date" ] . call ( value ) . value! named_variable_date_cache [ name ] = parsed end
Write a value to the cache.
Write a value to the cache .
None
void
name
value
value (@see VariablePrecision::ParseDate)
value ( @see VariablePrecision :: ParseDate )