Sha256: ee0c2502e8989330953a8a7c37c3bf36396de64ebd8691681ac207e14f86e51b

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

# coding: utf-8

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.1.0 lib/kagemusha/rand.rb