Module: Replication::Modules::SemiConservative
- Defined in:
- lib/replication/modules/semi_conservative.rb
Instance Method Summary collapse
Instance Method Details
#replicate(**options) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/replication/modules/semi_conservative.rb', line 16 def replicate(**) strand_class.to_adapter.create!({ name: [:name], pairs: strand_attributes, origin: self }) end |
#strand_attributes ⇒ Object
24 25 26 27 28 |
# File 'lib/replication/modules/semi_conservative.rb', line 24 def strand_attributes @strand_attributes = _strand_attributes @strand_attributes = @strand_attributes.slice(*replication_config.only) unless replication_config.only.empty? @strand_attributes = @strand_attributes.except(*replication_config.except) unless replication_config.except.empty? end |
#unwound(**options) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/replication/modules/semi_conservative.rb', line 8 def unwound(**) strand_class.new({ name: [:name], pairs: strand_attributes, origin: self }) end |