るりまサーチ

最速Rubyリファレンスマニュアル検索!
1032件ヒット [1-100件を表示] (0.043秒)

別のキーワード

  1. matrix tr
  2. string tr
  3. string tr!
  4. string tr_s
  5. string tr_s!

検索結果

<< 1 2 3 ... > >>

CGI::CR -> String (18201.0)

キャリッジリターンを表す文字列です。

キャリッジリターンを表す文字列です。

OpenSSL::X509::ExtensionFactory#create_ext_from_string(str) -> OpenSSL::X509::Extension (12300.0)

文字列から OpenSSL::X509::Extension オブジェクトを生成します。

...から OpenSSL::X509::Extension オブジェクトを生成します。

文字列は "oid = value" もしくは "oid = critical, value" という
形式である必要があります。

@param str 生成する拡張領域のデータの文字列
@see OpenSSL::X509::ExtensionFactory#create_ext...

Socket::Constants::SO_SECURITY_ENCRYPTION_TRANSPORT -> Integer (12200.0)

@todo

@todo

Socket::SO_SECURITY_ENCRYPTION_TRANSPORT -> Integer (12200.0)

@todo

@todo

Net::ProtocRetryError (12000.0)

Alias of Net::ProtoRetriableError

...Alias of Net::ProtoRetriableError...

絞り込み条件を変える

String#crypt(salt) -> String (9206.0)

self と salt から暗号化された文字列を生成して返します。 salt には英数字、ドット (「.」)、スラッシュ (「/」) から構成される、 2 バイト以上の文字列を指定します。

...string-crypt gem の使用を検討してください。
* crypt の処理は crypt(3) の実装に依存しています。
従って、crypt で処理される内容の詳細や salt の与え方については、
利用環境の crypt(3) 等を見て確認してください。
* cryp...
...t の結果は利用環境が異なると変わる場合があります。
cr
ypt の結果を、異なる利用環境間で使用する場合には注意して下さい。
* 典型的な DES を使用した crypt(3) の場合、
self の最初の 8 バイト、salt の最初の 2 バイト...
...パスワードの暗号化
salt = [rand(64),rand(64)].pack("C*").tr("\x00-\x3f","A-Za-z0-9./")
passwd.crypt(salt)

# UNIX のログイン認証
require 'etc'

def valid_login?(user, password)
ent = Etc.getpwnam(user)
password.crypt(ent.passwd) == ent.passwd
end

p valid_login?("taro", "passwor...

JSON::Generator::GeneratorMethods::String::Extend.json_create(hash) -> String (9200.0)

JSON のオブジェクトから Ruby の文字列を生成して返します。

...のオブジェクトから Ruby の文字列を生成して返します。

@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。

require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "ABC"...

OpenStruct.json_create(hash) -> OpenStruct (9200.0)

JSON のオブジェクトから OpenStruct のオブジェクトを生成して返します。

...JSON のオブジェクトから OpenStruct のオブジェクトを生成して返します。

@param hash OpenStruct.new に指定可能な値をキー 't' もしくは :t に持つハッシュを指定します。...

String#scrub -> String (9200.0)

self が不正なバイト列を含む場合に別の文字列に置き換えた新しい文字列を返します。

...
ロックの戻り値で置き換えられます。

//emlist[例][ruby]{
"abc\u3042\x81".scrub # => "abc\u3042\uFFFD"
"abc\u3042\x81".scrub("*") # => "abc\u3042*"
"abc\u3042\xE3\x80".scrub{|bytes| '<'+bytes.unpack('H*')[0]+'>' } # => "abc\u3042<e380>"
//}

@see String#scrub!...
<< 1 2 3 ... > >>