Sha256: 4d472ae30281fc99bb2c1169b099bb83b9a3d9997a7a90fc0444fed277c5795a

Contents?: true

Size: 765 Bytes

Versions: 5

Compression:

Stored size: 765 Bytes

Contents

#==============================================================================#
# $Id: rand.rb 44 2007-09-07 02:32:58Z yuyakato $
#==============================================================================#

require File.join(File.dirname(__FILE__), "core")

#==============================================================================#

class Kagemusha #:nodoc:
  module Rand
    def self.always(num, &block)
      if block_given?
        return self.always(num).swap(&block)
      end

      musha = Kagemusha.new(Kernel)
      musha.def(:rand) { num }

      return musha
    end
  end
end

#==============================================================================#
#==============================================================================#

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kagemusha-0.0.3 lib/kagemusha/rand.rb
kagemusha-0.0.4 lib/kagemusha/rand.rb
kagemusha-0.0.5 lib/kagemusha/rand.rb
kagemusha-0.0.6 lib/kagemusha/rand.rb
kagemusha-0.0.7 lib/kagemusha/rand.rb