Sha256: e6b187b1118c34d14c9a2bfd3174da357f1b204a871da37dc4f77354258d6151

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

require 'xi/pattern'

module Xi
  module Pattern::Enumerable
    def p(dur=nil, **metadata)
      Pattern.new(self, event_duration: dur, **metadata)
    end
  end
end

class Enumerator
  include Xi::Pattern::Enumerable
end

class Array
  include Xi::Pattern::Enumerable
end

class Hash
  include Xi::Pattern::Enumerable
end

class Range
  include Xi::Pattern::Enumerable
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xi-lang-0.1.4 lib/xi/core_ext/enumerable.rb
xi-lang-0.1.3 lib/xi/core_ext/enumerable.rb
xi-lang-0.1.2 lib/xi/core_ext/enumerable.rb
xi-lang-0.1.0 lib/xi/core_ext/enumerable.rb