180件ヒット
[1-100件を表示]
(0.015秒)
ライブラリ
- ビルトイン (72)
-
bigdecimal
/ ludcmp (12) - erb (48)
- objspace (12)
- syslog (24)
-
webrick
/ httputils (12)
モジュール
-
ERB
:: Util (48) - Kernel (12)
- LUSolve (12)
- ObjectSpace (12)
- Process (12)
-
Process
:: GID (24) -
Process
:: UID (24) - Syslog (24)
-
WEBrick
:: HTTPUtils (12)
キーワード
- getrlimit (12)
- h (12)
-
html
_ escape (12) - lusolve (12)
- mask (12)
- mask= (12)
-
mime
_ type (12) - switch (48)
- syscall (12)
-
trace
_ object _ allocations (12) - u (12)
-
url
_ encode (12)
検索結果
先頭5件
-
ERB
:: Util . # h(s) -> String (7.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
ERB
:: Util . # html _ escape(s) -> String (7.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
ERB
:: Util . # u(s) -> String (7.0) -
文字列 s を URLエンコードした文字列を返します。
...た文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%2... -
ERB
:: Util . # url _ encode(s) -> String (7.0) -
文字列 s を URLエンコードした文字列を返します。
...た文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%2... -
Kernel
. # syscall(num , *arg) -> Integer (7.0) -
numで指定された番号のシステムコールを実行します。 第2引数以降をシステムコールの引数として渡します。
...をシステムコールの引数として渡します。
どの数値がどのシステムコールに対応するかは、
syscall(2) や
/usr/include/sys/syscall.h を参照してください。
システムコールの慣習に従い、syscall(2)
が -1 を返す場合には例外 Errno::EXXX... -
LUSolve
. # lusolve(a , b , ps , zero = 0 . 0) -> [BigDecimal] (7.0) -
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求めて返します。
...@param zero 0.0 を表す値を指定します。
//emlist[][ruby]{
require 'bigdecimal'
require 'bigdecimal/util'
require 'bigdecimal/ludcmp'
include LUSolve
a = [['1.0', '2.0'], ['3.0', '1.0']].flatten.map(&:to_d)
# x = ['1.0', -1.0']
b = ['-1.0', '2.0'].map(&:to_d)
zero = '0.0'.to_d
one = '... -
ObjectSpace
. # trace _ object _ allocations { . . . } (7.0) -
与えられたブロック内でオブジェクトのトレースを行います。
...与えられたブロック内でオブジェクトのトレースを行います。
//emlist[例][ruby]{
require 'objspace'
class C
include ObjectSpace
def foo
trace_object_allocations do
obj = Object.new
p "#{allocation_sourcefile(obj)}:#{allocation_sourceline(obj)}"... -
Process
. # getrlimit(resource) -> [Integer] (7.0) -
カレントプロセスでのリソースの制限値を、整数の配列として返します。 返り値は、現在の制限値 cur_limit と、制限値として設定可能な最大値 max_limit の 配列 [cur_limit, max_limit] です。
...大サイズ (バイト) (4.2BSD, GNU/Linux)
: Process::RLIMIT_SBSIZE
ソケットバッファのサイズ (バイト) (NetBSD, FreeBSD)
例:
include Process
p lim = getrlimit(RLIMIT_STACK) #=> [8388608, 18446744073709551615]
p lim.map{|i| i == RLIM_INFIN... -
Process
:: GID . # switch -> Integer (7.0) -
実効グループ ID を一時的に変更するために使います。
...れます。
@raise NotImplementedError メソッドが現在のプラットフォームで実装されていない場合に発生します。
include Process
# (r, e, s) == (500, 505, 505)
p [gid, egid] #=> [500, 505]
Process::GID.switch do
p [gid, egid] #=> [500, 500]
e...