module Mumukit::Sync

An import and export pipeline for generic resources.

A resource - that is, something that can be imported or exported - must implement the following methods:

Constants

VERSION

Public Class Methods

classify(kind) click to toggle source

depracated

# File lib/mumukit/sync.rb, line 26
def self.classify(kind)
  kind.as_module_name
end
constantize(kind) click to toggle source

depracated

# File lib/mumukit/sync.rb, line 21
def self.constantize(kind)
  kind.as_module
end
key(kind, id) click to toggle source

Creates a sync key, composed of a `kind` and `id`

kind: string|symbol|class id: object

Warning: in order to test the `kind`, always use the `like?` message

# File lib/mumukit/sync.rb, line 16
def self.key(kind, id)
  struct kind: kind, id: id
end