Sha256: 896c650aadc7fbf86e0bcd068a762f9f04d37569be22f94330e37a931205ccdf
Contents?: true
Size: 787 Bytes
Versions: 1
Compression:
Stored size: 787 Bytes
Contents
# coding: utf-8 #==============================================================================# # $Id: rand.rb 116 2009-02-09 08:04:16Z 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) { |*x| num } return musha end end end #==============================================================================# #==============================================================================#
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nayutaya-kagemusha-0.0.9 | lib/kagemusha/rand.rb |