Sha256: 6e636f492d4d54d43fe18ae0dc91ce95a4eafe6e8bf1e9874fcf28c630c58913

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents

# Hash of bolts accessed by their keys
class Lightning
  class Bolts
    def initialize
      @hash = {}
    end
  
    def [](key)
      @hash[key] ||= Lightning::Bolt.new(key)
    end    
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
cldwalker-lightning-0.1.2 lib/lightning/bolts.rb
cldwalker-lightning-0.2.0 lib/lightning/bolts.rb
lightning-0.2.1 lib/lightning/bolts.rb