Class: Avm::Entries::Base::InheritedEntryValue
- Inherits:
-
Object
- Object
- Avm::Entries::Base::InheritedEntryValue
- Defined in:
- lib/avm/entries/base/inherited_entry_value.rb
Instance Method Summary collapse
Instance Method Details
#other_entry_value(instance_id) ⇒ Object
21 22 23 |
# File 'lib/avm/entries/base/inherited_entry_value.rb', line 21 def other_entry_value(instance_id) ::Avm::Instances::Base.by_id(instance_id).read_entry_optional(target_entry_suffix) end |
#result ⇒ Object
15 16 17 18 19 |
# File 'lib/avm/entries/base/inherited_entry_value.rb', line 15 def result self_entry_value.if_present do |instance_id| other_entry_value(instance_id).if_present(&block) end end |
#self_entry_value ⇒ Object
25 26 27 |
# File 'lib/avm/entries/base/inherited_entry_value.rb', line 25 def self_entry_value entries_provider.read_entry_optional(source_entry_suffix) end |