Module: Disposable::Twin::Sync::SkipGetter
- Defined in:
- lib/disposable/twin/sync.rb
Overview
Include this won’t use the getter #title in #sync but read directly from @fields.
Instance Method Summary collapse
Instance Method Details
#nested_hash_source ⇒ Object
157 158 159 |
# File 'lib/disposable/twin/sync.rb', line 157 def nested_hash_source OpenStruct.new(@fields) end |
#sync_read(dfn) ⇒ Object
153 154 155 |
# File 'lib/disposable/twin/sync.rb', line 153 def sync_read(dfn) @fields[dfn[:name]] end |