Sha256: 320336768a5edcebe315a2c32f566140cba29c0f734475a6e3713fabf803a17e

Contents?: true

Size: 258 Bytes

Versions: 17

Compression:

Stored size: 258 Bytes

Contents

module JIJI

  module AgentUtil

    #ブロックを指定のセーフレベルで実行する。
    #level:: セーフレベル
    def safe(level=4)
      Thread.fork {
        $SAFE = level
        yield if block_given?
      }.value
    end
  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
unageanu-jiji-0.1.0 lib/jiji/agent/util.rb
unageanu-jiji-1.0.0 lib/jiji/agent/util.rb
unageanu-jiji-1.0.1 lib/jiji/agent/util.rb
unageanu-jiji-1.0.2 lib/jiji/agent/util.rb
unageanu-jiji-1.0.3 lib/jiji/agent/util.rb
unageanu-jiji-1.1.0 lib/jiji/agent/util.rb
unageanu-jiji-1.1.1 lib/jiji/agent/util.rb
unageanu-jiji-1.1.2 lib/jiji/agent/util.rb
unageanu-jiji-1.1.3 lib/jiji/agent/util.rb
unageanu-jiji-1.1.4 lib/jiji/agent/util.rb
unageanu-jiji-1.2.1 lib/jiji/agent/util.rb
unageanu-jiji-1.2.3 lib/jiji/agent/util.rb
unageanu-jiji-1.2.4 lib/jiji/agent/util.rb
jiji-1.2.8 lib/jiji/agent/util.rb
jiji-1.2.7 lib/jiji/agent/util.rb
jiji-1.2.6 lib/jiji/agent/util.rb
jiji-1.2.5 lib/jiji/agent/util.rb