Sha256: 9519b4a497472a78833dcb23d197ff1db7228aca5916451fed4f7cbdf45aa89a

Contents?: true

Size: 264 Bytes

Versions: 9

Compression:

Stored size: 264 Bytes

Contents

module Replication
  module StrandMethods

    def self.extended(strand_class)
      strand_class.class_eval do
        include InstanceMethods
      end
    end

    module InstanceMethods
      def replicate
        origin.new(pairs)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
replication-0.4.1 lib/replication/strand_methods.rb
replication-0.4.0 lib/replication/strand_methods.rb
replication-0.3.2 lib/replication/strand_methods.rb
replication-0.3.1 lib/replication/strand_methods.rb
replication-0.3.0 lib/replication/strand_methods.rb
replication-0.2.0 lib/replication/strand_methods.rb
replication-0.1.2 lib/replication/strand_methods.rb
replication-0.1.1 lib/replication/strand_methods.rb
replication-0.1.0 lib/replication/strand_methods.rb