Method: ActiveSet::AttributeInstruction#value_for
- Defined in:
- lib/active_set/attribute_instruction.rb
#value_for(item:) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/active_set/attribute_instruction.rb', line 64 def value_for(item:) @values_for ||= Hash.new do |h, key| h[key] = resource_for(item: key).public_send(attribute) end @values_for[item] rescue StandardError # :nocov: nil # :nocov: end |