Sha256: a02dbc7ff47fe29c0a0e1668064f44e6988a40f4257e9feec998f933b328a656
Contents?: true
Size: 595 Bytes
Versions: 8
Compression:
Stored size: 595 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 def options_for(name, version) return nil if !@map.has_key?(name) || !@map[name][version] @map[name][version][:options] end end end end
Version data entries
8 entries across 8 versions & 1 rubygems