Sha256: dc7897abc09aa307c2ed191994d073c1cd6b0872bbf5ce74401fc63399b14071

Contents?: true

Size: 140 Bytes

Versions: 13

Compression:

Stored size: 140 Bytes

Contents

require 'singleton'

module Kl
  class EmptyList
    include Singleton
    include Enumerable

    def each
      # no-op
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shen-ruby-0.10.0 lib/kl/empty_list.rb
shen-ruby-0.9.0 lib/kl/empty_list.rb
shen-ruby-0.8.1 lib/kl/empty_list.rb
shen-ruby-0.8.0 lib/kl/empty_list.rb
shen-ruby-0.7.0 lib/kl/empty_list.rb
shen-ruby-0.6.0 lib/kl/empty_list.rb
shen-ruby-0.5.0 lib/kl/empty_list.rb
shen-ruby-0.4.1 lib/kl/empty_list.rb
shen-ruby-0.4.0 lib/kl/empty_list.rb
shen-ruby-0.3.1 lib/kl/empty_list.rb
shen-ruby-0.3.0 lib/kl/empty_list.rb
shen-ruby-0.2.0 lib/kl/empty_list.rb
shen-ruby-0.1.0 lib/kl/empty_list.rb