ライブラリ
クラス
- Array (2)
-
Digest
:: Base (3) - Integer (2)
-
Net
:: FTP (12) -
Net
:: IMAP (2) -
OpenSSL
:: BN (1) -
OpenSSL
:: SSL :: SSLContext (1) - Pathname (3)
-
RSS
:: Maker :: ChannelBase (34) -
RSS
:: Maker :: ChannelBase :: CategoriesBase (1) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (4) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase (1) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase (2) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase (1) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase :: HourBase (2) -
RSS
:: Maker :: ImageBase (2) -
RSS
:: Maker :: ItemsBase :: ItemBase (8) -
RSS
:: Maker :: RSSBase (3) -
RSS
:: Maker :: TextinputBase (2) -
RubyVM
:: InstructionSequence (2) - String (2)
-
Thread
:: Backtrace :: Location (2)
モジュール
キーワード
- about (1)
- about= (1)
-
base
_ label (2) - basename (1)
-
block
_ length (1) -
ca
_ file= (1) - categories (2)
- channel (1)
- clone (1)
- cloud (1)
- comments (1)
- comments= (1)
- content (3)
- content= (3)
- copyright (1)
- copyright= (1)
- date (1)
- date= (1)
- description (4)
- description= (4)
- docs (1)
- docs= (1)
- domain (1)
- domain= (1)
- dup (1)
- enclosure (1)
- encoding (1)
- encoding= (1)
- generator (1)
- generator= (1)
- get (2)
- getbinaryfile (2)
- gettextfile (2)
- guid (1)
- inspect (1)
- label (2)
- language (1)
- language= (1)
- lastBuildDate (1)
- lastBuildDate= (1)
- link (1)
- link= (1)
- managingEditor (1)
- managingEditor= (1)
-
new
_ category (1) -
new
_ day (1) -
new
_ hour (1) - pack (2)
- pubDate (1)
- pubDate= (1)
- put (2)
- putbinaryfile (2)
- puttextfile (2)
- realpath (1)
-
relative
_ path _ from (1) - skipDays (1)
- skipHours (1)
- sort (1)
- source (1)
-
sy
_ updateBase (1) -
sy
_ updateBase= (1) - title (1)
- title= (1)
-
to
_ i (1) -
to
_ s (2) -
trackback
_ about (1) -
trackback
_ about= (1) -
trackback
_ abouts (1) -
trackback
_ ping (1) -
trackback
_ ping= (1) - ttl (1)
- ttl= (1)
-
uid
_ sort (1) - unpack (1)
- webMaster (1)
- webMaster= (1)
検索結果
先頭5件
-
RSS
:: BaseTrackBackModel # trackback _ about (63604.0) -
@todo
@todo -
RSS
:: BaseTrackBackModel # trackback _ about= (63604.0) -
@todo
@todo -
RSS
:: BaseTrackBackModel # trackback _ abouts (63604.0) -
@todo
@todo -
RSS
:: BaseTrackBackModel # trackback _ ping (63604.0) -
@todo
@todo -
RSS
:: BaseTrackBackModel # trackback _ ping= (63604.0) -
@todo
@todo -
CGI
:: HtmlExtension # base(href = "") -> String (63391.0) -
base 要素を生成します。
base 要素を生成します。
@param href 文字列を指定します。属性をハッシュで指定することもできます。
例:
base("http://www.example.com/cgi")
# => "<BASE HREF=\"http://www.example.com/cgi\">" -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # content (45304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # content=() (45304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase # content (45304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase # content=() (45304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipHoursBase :: HourBase # content (45304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipHoursBase :: HourBase # content=() (45304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: CategoriesBase # new _ category (36304.0) -
@todo 新しくcategoryを作成し,返します.作成された categoryはcategoryリストの最後 に追加されています.
@todo
新しくcategoryを作成し,返します.作成された
categoryはcategoryリストの最後
に追加されています. -
RSS
:: Maker :: ItemsBase :: ItemBase # categories (36304.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase # comments (36304.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase # comments=() (36304.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase # description (36304.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase # description=() (36304.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase # enclosure (36304.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase # source (36304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # domain (36004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # domain=() (36004.0) -
@todo
@todo -
Digest
:: Base # clone -> Digest :: Base (27610.0) -
ダイジェストオブジェクトの複製を作ります。
ダイジェストオブジェクトの複製を作ります。 -
RubyVM
:: InstructionSequence # base _ label -> String (27361.0) -
self が表す命令シーケンスの基本ラベルを返します。
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "h... -
Thread
:: Backtrace :: Location # base _ label -> String (27325.0) -
self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。
self が表すフレームの基本ラベルを返します。通常、
Thread::Backtrace::Location#label から修飾を取り除いたもので構成
されます。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.base_label
end
# => init... -
Digest
:: Base # block _ length -> Integer (27304.0) -
ダイジェストのブロック長を取得します。 例えば、Digest::MD5であれば64、Digest::SHA512であれば128です。
ダイジェストのブロック長を取得します。
例えば、Digest::MD5であれば64、Digest::SHA512であれば128です。
本メソッドは、Digest::MD5などのダイジェストのサブクラスにより、
それぞれの実装に適したものにオーバーライドされます。
例: Digest::MD、Digest::SHA1、Digest::SHA512のブロック長を順番に調べる。
require 'digest'
["MD5", "SHA1", "SHA512"].map{|a| Digest(a).new().block_length } # => [64, 128, 128] -
RSS
:: Maker :: ChannelBase # categories (27304.0) -
@todo categoriesを返します.
@todo
categoriesを返します. -
RSS
:: Maker :: ChannelBase # cloud (27304.0) -
@todo cloudを返します.
@todo
cloudを返します. -
RSS
:: Maker :: ChannelBase # copyright (27304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # copyright=() (27304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # description (27304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # description=() (27304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # docs (27304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # docs=() (27304.0) -
@todo
@todo -
RSS
:: Maker :: ImageBase # description (27304.0) -
@todo
@todo -
RSS
:: Maker :: ImageBase # description=() (27304.0) -
@todo
@todo -
RSS
:: Maker :: RSSBase # channel (27304.0) -
@todo channel要素を生成するオブジェクトを返します.
@todo
channel要素を生成するオブジェクトを返します. -
RSS
:: Maker :: RSSBase # encoding (27304.0) -
@todo 作成するXMLのエンコーディングを返します.デフォルトは UTF-8です.
@todo
作成するXMLのエンコーディングを返します.デフォルトは
UTF-8です. -
RSS
:: Maker :: RSSBase # encoding=() (27304.0) -
@todo 作成するXMLのエンコーディングを設定します.maker に設定する際のエンコーディングはここで指定したものにす る必要があります.
@todo
作成するXMLのエンコーディングを設定します.maker
に設定する際のエンコーディングはここで指定したものにす
る必要があります. -
RSS
:: Maker :: TextinputBase # description (27304.0) -
@todo
@todo -
RSS
:: Maker :: TextinputBase # description=() (27304.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updateBase (27304.0) -
@todo
@todo -
RSS
:: SyndicationModel # sy _ updateBase= (27304.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipDaysBase # new _ day (27004.0) -
@todo 新しくdayを作成し,返します.作成された dayはdayリストの最後 に追加されています.
@todo
新しくdayを作成し,返します.作成された
dayはdayリストの最後
に追加されています. -
RSS
:: Maker :: ChannelBase :: SkipHoursBase # new _ hour (27004.0) -
@todo
@todo
新しくhourを作成し,返します.作成された
hourはhourリストの最後
に追加されています. -
RSS
:: Maker :: ItemsBase :: ItemBase # guid (27004.0) -
@todo
@todo -
Array
# pack(template) -> String (19312.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...# NaN
[1.0/0.0].pack("f") # => "\x7F\x80\x00\x00" # +Infinity
[-1.0/0.0].pack("f") # => "\xFF\x80\x00\x00" # -Infinity
//}
VAX (NetBSD 3.0) (非IEEE754):
//emlist[][ruby]{
[1.0].pack("f") # => "\x80@\x00\x00"
//}
: d
倍精度浮動小数点数(機種依存)
x86_64 (IEEE754 倍......"\x7F\xF0\x00\x00\x00\x00\x00\x00" # +Infinity
[-1.0/0.0].pack("d") # => "\xFF\xF0\x00\x00\x00\x00\x00\x00" # -Infinity
//}
VAX (NetBSD 3.0) (非IEEE754):
//emlist[][ruby]{
[1.0].pack("d") # => "\x80@\x00\x00\x00\x00\x00\x00"
//}
: e
リトルエンディアンの単精度浮動小... -
Array
# pack(template , buffer: String . new) -> String (19312.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...# NaN
[1.0/0.0].pack("f") # => "\x7F\x80\x00\x00" # +Infinity
[-1.0/0.0].pack("f") # => "\xFF\x80\x00\x00" # -Infinity
//}
VAX (NetBSD 3.0) (非IEEE754):
//emlist[][ruby]{
[1.0].pack("f") # => "\x80@\x00\x00"
//}
: d
倍精度浮動小数点数(機種依存)
x86_64 (IEEE754 倍......"\x7F\xF0\x00\x00\x00\x00\x00\x00" # +Infinity
[-1.0/0.0].pack("d") # => "\xFF\xF0\x00\x00\x00\x00\x00\x00" # -Infinity
//}
VAX (NetBSD 3.0) (非IEEE754):
//emlist[][ruby]{
[1.0].pack("d") # => "\x80@\x00\x00\x00\x00\x00\x00"
//}
: e
リトルエンディアンの単精度浮動小... -
String
# unpack(template) -> Array (19312.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...# NaN
[1.0/0.0].pack("f") # => "\x7F\x80\x00\x00" # +Infinity
[-1.0/0.0].pack("f") # => "\xFF\x80\x00\x00" # -Infinity
//}
VAX (NetBSD 3.0) (非IEEE754):
//emlist[][ruby]{
[1.0].pack("f") # => "\x80@\x00\x00"
//}
: d
倍精度浮動小数点数(機種依存)
x86_64 (IEEE754 倍......"\x7F\xF0\x00\x00\x00\x00\x00\x00" # +Infinity
[-1.0/0.0].pack("d") # => "\xFF\xF0\x00\x00\x00\x00\x00\x00" # -Infinity
//}
VAX (NetBSD 3.0) (非IEEE754):
//emlist[][ruby]{
[1.0].pack("d") # => "\x80@\x00\x00\x00\x00\x00\x00"
//}
: e
リトルエンディアンの単精度浮動小... -
Integer
# inspect(base=10) -> String (18646.0) -
整数を 10 進文字列表現に変換します。
整数を 10 進文字列表現に変換します。
引数を指定すれば、それを基数とした文字列表
現に変換します。
//emlist[][ruby]{
p 10.to_s(2) # => "1010"
p 10.to_s(8) # => "12"
p 10.to_s(16) # => "a"
p 35.to_s(36) # => "z"
//}
@return 数値の文字列表現
@param base 基数となる 2 - 36 の数値。
@raise ArgumentError base に 2 - 36 以外の数値を指定した場合に発生します。 -
OpenSSL
:: SSL :: SSLContext # ca _ file=(ca) (18640.0) -
接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを 設定します。
接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを
設定します。
ファイルは以下のように複数の証明書を含んでいても構いません。
(ここに証明書の説明)
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----
(ここに証明書の説明)
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CE... -
Pathname
# basename(suffix = "") -> Pathname (18412.0) -
Pathname.new(File.basename(self.to_s, suffix)) と同じです。
Pathname.new(File.basename(self.to_s, suffix)) と同じです。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
//emlist[例][ruby]{
require "pathname"
Pathname("ruby/ruby.c").basename #=> #<Pathname:"ruby.c">
Pathname("ruby/ruby.c").basename("... -
Digest
:: Base # dup -> Digest :: Base (18310.0) -
ダイジェストオブジェクトの複製を作ります。
ダイジェストオブジェクトの複製を作ります。 -
RSS
:: Maker :: ChannelBase # about (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # about=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # date (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # date=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # generator (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # generator=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # language (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # language=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # lastBuildDate (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # lastBuildDate=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # link (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # link=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # managingEditor (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # managingEditor=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # pubDate (18004.0) -
@todo maker.channel.dateの別名です.
@todo
maker.channel.dateの別名です. -
RSS
:: Maker :: ChannelBase # pubDate=() (18004.0) -
@todo maker.channel.date=の別名です.
@todo
maker.channel.date=の別名です. -
RSS
:: Maker :: ChannelBase # rating (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # rating=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # skipDays (18004.0) -
@todo skipDaysを返します.
@todo
skipDaysを返します. -
RSS
:: Maker :: ChannelBase # skipHours (18004.0) -
@todo skipHoursを返します.
@todo
skipHoursを返します. -
RSS
:: Maker :: ChannelBase # title (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # title=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # ttl (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # ttl=() (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # webMaster (18004.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # webMaster=() (18004.0) -
@todo
@todo -
Integer
# to _ s(base=10) -> String (9346.0) -
整数を 10 進文字列表現に変換します。
整数を 10 進文字列表現に変換します。
引数を指定すれば、それを基数とした文字列表
現に変換します。
//emlist[][ruby]{
p 10.to_s(2) # => "1010"
p 10.to_s(8) # => "12"
p 10.to_s(16) # => "a"
p 35.to_s(36) # => "z"
//}
@return 数値の文字列表現
@param base 基数となる 2 - 36 の数値。
@raise ArgumentError base に 2 - 36 以外の数値を指定した場合に発生します。 -
Thread
:: Backtrace :: Location # label -> String (9058.0) -
self が表すフレームのラベルを返します。通常、メソッド名、クラス名、モ ジュール名などで構成されます。
self が表すフレームのラベルを返します。通常、メソッド名、クラス名、モ
ジュール名などで構成されます。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.label # => "a"
//}
@see Thread::Backtrace::Location#base_label -
RubyVM
:: InstructionSequence # label -> String (9022.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: R... -
Net
:: FTP # put(localfile , remotefile = File . basename(localfile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (904.0) -
サーバへファイルを転送します。
サーバへファイルを転送します。
Net::FTP#binary の値に従って
Net::FTP#putbinaryfile もしくは
Net::FTP#puttextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param localfile 転送するローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@param blocksize データ転送の単位をバイト単位で与えます。
@raise Net::FTPTempError 応答コ... -
Net
:: FTP # put(localfile , remotefile = File . basename(localfile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (904.0) -
サーバへファイルを転送します。
サーバへファイルを転送します。
Net::FTP#binary の値に従って
Net::FTP#putbinaryfile もしくは
Net::FTP#puttextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param localfile 転送するローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@param blocksize データ転送の単位をバイト単位で与えます。
@raise Net::FTPTempError 応答コ... -
Net
:: FTP # putbinaryfile(localfile , remotefile = File . basename(localfile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (904.0) -
サーバにファイルをバイナリモードで転送します。
サーバにファイルをバイナリモードで転送します。
ローカルの localfile という名前のファイルを読みだし、
サーバー上の remotefile という名前のファイルに保存します。
データの転送は blocksize バイト毎に行なわれます。
ブロックが指定された場合は
データを blocksize バイト転送するごとに、そのデータを
ブロックに渡します。
@param localfile 転送するローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@param blocksize データ転送の単位をバイト単... -
Net
:: FTP # putbinaryfile(localfile , remotefile = File . basename(localfile) , blocksize = DEFAULT _ BLOCKSIZE) {|data| . . . } -> nil (904.0) -
サーバにファイルをバイナリモードで転送します。
サーバにファイルをバイナリモードで転送します。
ローカルの localfile という名前のファイルを読みだし、
サーバー上の remotefile という名前のファイルに保存します。
データの転送は blocksize バイト毎に行なわれます。
ブロックが指定された場合は
データを blocksize バイト転送するごとに、そのデータを
ブロックに渡します。
@param localfile 転送するローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@param blocksize データ転送の単位をバイト単... -
Net
:: FTP # puttextfile(localfile , remotefile = File . basename(localfile)) -> nil (904.0) -
サーバにファイルをテキストモードで転送します。
サーバにファイルをテキストモードで転送します。
ローカルの localfile という名前のファイルを読みだし、
サーバー上の remotefile という名前のファイルに保存します。
ブロックが指定された場合は
データを1行転送するごとに、その行を
ブロックに渡します。
@param localfile 転送するローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コー... -
Net
:: FTP # puttextfile(localfile , remotefile = File . basename(localfile)) {|line| . . . } -> nil (904.0) -
サーバにファイルをテキストモードで転送します。
サーバにファイルをテキストモードで転送します。
ローカルの localfile という名前のファイルを読みだし、
サーバー上の remotefile という名前のファイルに保存します。
ブロックが指定された場合は
データを1行転送するごとに、その行を
ブロックに渡します。
@param localfile 転送するローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コー... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (763.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_direct... -
Net
:: IMAP # sort(sort _ keys , search _ keys , charset) -> [Integer] (622.0) -
SORT コマンド送り、メールボックス内の メッセージをソートした結果を返します。
SORT コマンド送り、メールボックス内の
メッセージをソートした結果を返します。
SORT コマンドは 5256 で定義されています。
詳しくはそちらを参照してください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。
sort_keys にはソート順を決めるキーを文字列の配列で指定します。
"ARRIVAL", "CC", "FROM", "TO", "SUBJECT" などが指定できます。
詳しくは 5265 の BASE.6.4.SORT の所を見てください。
search_key には検索条件を渡します。Net::... -
Net
:: IMAP # uid _ sort(sort _ keys , search _ keys , charset) -> [Integer] (622.0) -
SORT コマンド送り、メールボックス内の メッセージをソートした結果を返します。
SORT コマンド送り、メールボックス内の
メッセージをソートした結果を返します。
SORT コマンドは 5256 で定義されています。
詳しくはそちらを参照してください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。
sort_keys にはソート順を決めるキーを文字列の配列で指定します。
"ARRIVAL", "CC", "FROM", "TO", "SUBJECT" などが指定できます。
詳しくは 5265 の BASE.6.4.SORT の所を見てください。
search_key には検索条件を渡します。Net::... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (604.0) -
サーバ上のファイルを取得します。
サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@param blocksize データ転送の単位をバイト単位で与えます。
@raise Net::FTPTempError... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (604.0) -
サーバ上のファイルを取得します。
サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@param blocksize データ転送の単位をバイト単位で与えます。
@raise Net::FTPTempError... -
Net
:: FTP # getbinaryfile(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (604.0) -
サーバ上のファイルをバイナリモードで取得します。
サーバ上のファイルをバイナリモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
データの転送は blocksize バイト毎に行なわれます。
ブロックが指定された場合は
データを blocksize バイト受信するごとに、そのデータを
ブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル... -
Net
:: FTP # getbinaryfile(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) {|data| . . . } -> nil (604.0) -
サーバ上のファイルをバイナリモードで取得します。
サーバ上のファイルをバイナリモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
データの転送は blocksize バイト毎に行なわれます。
ブロックが指定された場合は
データを blocksize バイト受信するごとに、そのデータを
ブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル... -
Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) -> nil (604.0) -
サーバ上のファイルをテキストモードで取得します。
サーバ上のファイルをテキストモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
ブロックが指定された場合は
データを1行受信するごとに、その行をブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz の... -
Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) {|line| . . . } -> nil (604.0) -
サーバ上のファイルをテキストモードで取得します。
サーバ上のファイルをテキストモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
ブロックが指定された場合は
データを1行受信するごとに、その行をブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz の... -
OpenSSL
:: BN # to _ s(base=10) -> String (361.0) -
自身を表す文字列を返します。
自身を表す文字列を返します。
base で、変換方法(基数)を指定します。
デフォルトは 10 で、他に 16, 2, 0 を指定できます。
10 10進数の表記
16 16進数の表記
2 big-endianの符号無し整数のバイナリ列
0 MPI形式の文字列(バイト列)
@param base 文字列への変換方法(基数)
@raise OpenSSL::BNError 変換に失敗した場合に発生します
//emlist[][ruby]{
require 'openssl'
p 10.to_bn.to_s # => "10"
p (-5).to_bn.... -
String
# to _ i(base = 10) -> Integer (361.0) -
文字列を 10 進数表現された整数であると解釈して、整数に変換します。
文字列を 10 進数表現された整数であると解釈して、整数に変換します。
//emlist[例][ruby]{
p " 10".to_i # => 10
p "+10".to_i # => 10
p "-10".to_i # => -10
p "010".to_i # => 10
p "-010".to_i # => -10
//}
整数とみなせない文字があればそこまでを変換対象とします。
変換対象が空文字列であれば 0 を返します。
//emlist[例][ruby]{
p "0x11".to_i # => 0
p "".to_i # =>... -
Pathname
# realpath(basedir = nil) -> Pathname (322.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/b...