Sha256: 8afaa2ec5677d095049f088bd4fd921601da25ed16528c05beb17c1465d88bc0

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

require "xi/version"
require 'xi/core_ext'
require 'xi/pattern'
require 'xi/event'
require 'xi/stream'
require 'xi/clock'

def inf
  Float::INFINITY
end

module Xi::Init
  def default_clock
    @default_clock ||= Clock.new
  end

  def peek(pattern, *args)
    pattern.peek(*args)
  end

  def peek_events(pattern, *args)
    pattern.peek_events(*args)
  end
end

self.extend Xi::Init

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xi-lang-0.1.2 lib/xi.rb
xi-lang-0.1.0 lib/xi.rb