Sha256: 5f30e1d3d19e1238acfc9b4eb4263110a3330f6e63e22d142d946905f969cedc

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

module Replication
  module Modules
    module SemiConservative

      def unwound(**options)
        strand_class.new({
          name: options[:name],
          pairs: strand_attributes,
          origin: self
        })
      end

      def replicate(**options)
        strand_class.to_adapter.create!({
          name: options[:name],
          pairs: strand_attributes,
          origin: self
        })
      end

      def strand_attributes
        _strand_attributes.except(*replication_config.except)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
replication-0.1.2 lib/replication/modules/semi_conservative.rb