Sha256: 9345e76d7b4e328ae3c0e9effed159906cc665eaaa5c49021498701bc5e55e17

Contents?: true

Size: 441 Bytes

Versions: 12

Compression:

Stored size: 441 Bytes

Contents

module JFlow
  module Activity
    class Map
      def initialize
        @map = {}
      end

      def add_activity(name, version, klass, options)
        @map ||= {}
        @map[name] ||= {}
        @map[name][version] = {:class => klass, :options => options}
      end

      def klass_for(name, version)
        return nil if !@map.has_key?(name) || !@map[name][version]
        @map[name][version][:class]
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jflow-0.3.6 lib/jflow/activity/map.rb
jflow-0.3.5 lib/jflow/activity/map.rb
jflow-0.3.4 lib/jflow/activity/map.rb
jflow-0.3.3 lib/jflow/activity/map.rb
jflow-0.3.2 lib/jflow/activity/map.rb
jflow-0.3.1 lib/jflow/activity/map.rb
jflow-0.3.0 lib/jflow/activity/map.rb
jflow-0.2.9 lib/jflow/activity/map.rb
jflow-0.2.8 lib/jflow/activity/map.rb
jflow-0.2.6 lib/jflow/activity/map.rb
jflow-0.2.5 lib/jflow/activity/map.rb
jflow-0.2.0 lib/jflow/activity/map.rb