Sha256: ba04f3260ec4375f21b58b9c7e1ac37a1bb45e28d1c94e5f220d52482f12940f

Contents?: true

Size: 236 Bytes

Versions: 7

Compression:

Stored size: 236 Bytes

Contents

=begin rdoc
  Kernel overloads
=end
module Kernel
  # Nice wait instead of sleep
  def wait(time=10)
    sleep time.is_a?(String) ? eval(time) : time
  end
  def as(klass_or_obj, &block)
    block.in_context(klass_or_obj).call
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
auser-poolparty-0.0.8 lib/core/kernel.rb
auser-poolparty-0.0.9 lib/core/kernel.rb
auser-poolparty-0.1.0 lib/core/kernel.rb
auser-poolparty-0.1.1 lib/core/kernel.rb
auser-poolparty-0.1.2 lib/core/kernel.rb
dreadpiratepj-poolparty-0.0.8 lib/core/kernel.rb
jtzemp-poolparty-0.1.2 lib/core/kernel.rb