Sha256: e3297b0441f666ed05259d8e7fd2afa176fe8442c53cfb9c5a5afebffce10dd9

Contents?: true

Size: 275 Bytes

Versions: 8

Compression:

Stored size: 275 Bytes

Contents

require 'xi/pattern'

module Xi::CoreExt
  module Enumerable
    def p(*delta, **metadata)
      Xi::Pattern.new(self.to_a, delta: delta, **metadata)
    end
  end
end

class Enumerator
  include Xi::CoreExt::Enumerable
end

class Range
  include Xi::CoreExt::Enumerable
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xi-lang-0.2.5 lib/xi/core_ext/enumerable.rb
xi-lang-0.2.4 lib/xi/core_ext/enumerable.rb
xi-lang-0.2.3 lib/xi/core_ext/enumerable.rb
xi-lang-0.2.2 lib/xi/core_ext/enumerable.rb
xi-lang-0.2.1 lib/xi/core_ext/enumerable.rb
xi-lang-0.2.0 lib/xi/core_ext/enumerable.rb
xi-lang-0.1.6 lib/xi/core_ext/enumerable.rb
xi-lang-0.1.5 lib/xi/core_ext/enumerable.rb