5178件ヒット
[1-100件を表示]
(0.107秒)
ライブラリ
- ビルトイン (2199)
-
bigdecimal
/ newton (11) -
cgi
/ session (22) -
cgi
/ session / pstore (11) - csv (11)
- date (99)
-
digest
/ sha2 (11) - drb (22)
- e2mmap (12)
- fiber (8)
- fiddle (55)
- fileutils (11)
- ipaddr (11)
- json (22)
- monitor (16)
-
net
/ ftp (22) -
net
/ http (88) -
net
/ imap (11) -
net
/ pop (33) -
net
/ smtp (28) -
net
/ telnet (12) - openssl (737)
- optparse (231)
- ostruct (11)
- pathname (33)
- prime (33)
- pstore (55)
- rake (11)
-
rdoc
/ markup (11) -
rdoc
/ markup / to _ html _ crossref (11) - resolv-replace (33)
-
rexml
/ document (11) -
rexml
/ parsers / sax2parser (11) -
rubygems
/ installer (11) -
rubygems
/ package / tar _ reader (11) -
rubygems
/ version (11) - set (22)
- shell (6)
- socket (110)
- stringio (303)
- strscan (55)
- thwait (6)
- uri (66)
-
webrick
/ httpproxy (11) - win32ole (506)
- zlib (33)
クラス
- Addrinfo (11)
- BasicObject (33)
- BasicSocket (33)
-
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: PStore (11) - CSV (11)
-
DRb
:: DRbServer (11) - Data (14)
- Date (44)
- DateTime (55)
-
Digest
:: SHA2 (11) - Dir (68)
-
Encoding
:: Converter (22) - Enumerator (38)
-
Enumerator
:: Lazy (11) - Exception (22)
- Fiber (48)
-
Fiddle
:: Handle (44) - File (87)
-
File
:: Stat (11) -
Gem
:: Installer (11) -
Gem
:: Package :: TarReader (11) -
Gem
:: Version (11) - Hash (44)
- IO (649)
- IPAddr (11)
- IPSocket (22)
- Integer (11)
- KeyError (14)
- Module (78)
- Monitor (16)
- Mutex (6)
-
Net
:: FTP (22) -
Net
:: HTTP (22) -
Net
:: IMAP (11) -
Net
:: POP3 (33) -
Net
:: SMTP (28) -
Net
:: Telnet (12) - Object (99)
-
OpenSSL
:: ASN1 :: ObjectId (22) -
OpenSSL
:: BN (154) -
OpenSSL
:: Cipher (11) -
OpenSSL
:: Config (22) -
OpenSSL
:: Digest (11) -
OpenSSL
:: Netscape :: SPKI (22) -
OpenSSL
:: OCSP :: CertificateId (11) -
OpenSSL
:: OCSP :: Request (22) -
OpenSSL
:: PKCS12 (11) -
OpenSSL
:: PKCS7 (11) -
OpenSSL
:: PKey :: DH (33) -
OpenSSL
:: PKey :: DSA (44) -
OpenSSL
:: PKey :: EC (22) -
OpenSSL
:: PKey :: EC :: Group (22) -
OpenSSL
:: PKey :: EC :: Point (33) -
OpenSSL
:: PKey :: RSA (55) -
OpenSSL
:: SSL :: SSLSocket (22) -
OpenSSL
:: SSL :: Session (11) -
OpenSSL
:: X509 :: Attribute (22) -
OpenSSL
:: X509 :: CRL (22) -
OpenSSL
:: X509 :: Certificate (22) -
OpenSSL
:: X509 :: Name (33) -
OpenSSL
:: X509 :: Request (22) -
OpenSSL
:: X509 :: Store (33) -
OpenSSL
:: X509 :: StoreContext (11) - OpenStruct (11)
- OptionParser (231)
- PStore (55)
- Pathname (33)
- Prime (22)
- Proc (18)
-
RDoc
:: Markup (11) -
RDoc
:: Markup :: ToHtmlCrossref (11) -
REXML
:: Document (11) -
REXML
:: Parsers :: SAX2Parser (11) -
Rake
:: InvocationChain (11) - Random (44)
- Range (23)
- Regexp (22)
- SOCKSSocket (11)
- Set (22)
- Shell (6)
- Socket (33)
-
Socket
:: AncillaryData (11) - String (22)
- StringIO (303)
- StringScanner (55)
- Struct (66)
- SystemCallError (44)
- SystemExit (11)
- TCPSocket (22)
- Thread (161)
-
Thread
:: Mutex (27) - ThreadGroup (11)
- ThreadsWait (6)
- Time (36)
- TracePoint (117)
-
URI
:: FTP (22) -
URI
:: Generic (11) -
URI
:: HTTP (11) -
URI
:: LDAP (11) -
URI
:: MailTo (11) - UnboundMethod (11)
-
WEBrick
:: HTTPProxyServer (11) - WIN32OLE (231)
-
WIN32OLE
_ EVENT (33) -
WIN32OLE
_ METHOD (33) -
WIN32OLE
_ PARAM (11) -
WIN32OLE
_ TYPE (66) -
WIN32OLE
_ TYPELIB (88) -
WIN32OLE
_ VARIANT (44) -
Zlib
:: GzipReader (11) -
Zlib
:: Inflate (22)
モジュール
- DRb (11)
- Enumerable (88)
- Exception2MessageMapper (12)
- Fiddle (11)
- FileUtils (11)
- JSON (22)
- Kernel (207)
- Marshal (22)
-
Net
:: HTTPHeader (66) - Newton (11)
- ObjectSpace (22)
-
OpenSSL
:: ASN1 (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- <=> (11)
- == (22)
- === (22)
- Complex (22)
- DH (11)
- Fail (6)
- Float (11)
- Integer (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - OCSP (11)
- Rational (11)
- String (11)
- Thread (11)
- [] (70)
- []= (22)
-
_ getproperty (11) -
_ invoke (11) -
_ setproperty (11) - abort (33)
- accept (22)
- add (11)
-
add
_ word _ pair (11) - addr (11)
- append (11)
-
auth
_ only (11) -
backtrace
_ locations (11) - bind (11)
- birthtime (10)
- bytes (14)
-
callee
_ id (11) - children (11)
- chmod (11)
- civil (22)
-
clear
_ bit! (11) - close (2)
- cmd (4)
- cmp (11)
- commercial (22)
- commit (11)
- compile (11)
- connect (11)
-
connect
_ nonblock (11) -
const
_ load (11) -
content
_ length (11) - convert (11)
- decode (11)
- define (4)
-
define
_ finalizer (22) -
define
_ method (22) - delete (11)
- dlopen (11)
- dump (22)
- each (99)
-
each
_ byte (22) -
each
_ char (22) -
each
_ line (88) - entries (6)
-
enum
_ for (22) - environment (11)
- eof (11)
- eof? (11)
-
eval
_ script (6) - event (11)
- exit (11)
- fail (33)
- feed (11)
- fetch (51)
- finish (11)
-
for
_ fd (11) - fork (11)
- generate (11)
- getbyte (11)
- getc (22)
- getopts (44)
- gets (44)
- guid (11)
-
handle
_ interrupt (11) -
implemented
_ ole _ types (11) - inflate (22)
-
initialize
_ copy (11) -
instance
_ eval (22) -
instance
_ method (11) -
instruction
_ sequence (6) - int (11)
- invoke (11)
- isatty (11)
- jd (11)
- join (22)
- key (7)
- lambda (17)
-
library
_ name (11) - lineno (22)
- lines (14)
- link (11)
- load (11)
- locale= (11)
- loop (18)
-
major
_ version (22) -
marshal
_ load (11) - max (44)
-
method
_ id (11) -
method
_ missing (11) - min (44)
-
minor
_ version (22) -
mod
_ add (11) -
mod
_ exp (11) -
mod
_ mul (11) -
mod
_ sub (11) -
mon
_ exit (5) - name= (9)
-
net
/ http (11) - new2 (11)
-
next
_ values (11) -
next
_ wait (6) - nlsolve (11)
- now (11)
- oid (11)
-
ole
_ activex _ initialize (11) -
ole
_ func _ methods (11) -
ole
_ get _ methods (11) -
ole
_ method (11) -
ole
_ method _ help (11) -
ole
_ methods (11) -
ole
_ put _ methods (11) -
ole
_ query _ interface (11) -
ole
_ show _ help (11) -
ole
_ typelib (11) -
on
_ event (11) -
on
_ event _ with _ outargs (11) - open (143)
- order (44)
- order! (22)
- ordinal (22)
- parameters (6)
- parse (33)
- parse! (11)
- path (22)
- peek (11)
-
peek
_ values (11) - peep (11)
-
pending
_ interrupt? (11) - permute (22)
- permute! (11)
- pipe (88)
- pointer= (11)
- popen (154)
- pos= (11)
-
prime
_ division (33) -
prime
_ fasttest? (11) - print (22)
- printf (11)
- private (23)
- proc (18)
- produce (5)
- puts (11)
- raise (59)
-
raised
_ exception (11) - rand (33)
- range (11)
-
range
_ length (11) -
rb
_ time _ timespec _ new (9) - readbyte (11)
- readchar (22)
- readline (44)
- readlines (11)
- receiver (7)
- recvfrom (22)
- register (11)
- reject (22)
-
relative
_ path _ from (11) -
remove
_ instance _ variable (11) - rename (11)
- reopen (55)
-
report
_ on _ exception (16) -
report
_ on _ exception= (8) -
respond
_ to? (11) - resume (11)
-
return
_ type (11) -
return
_ value (11) -
return
_ vtype (11) - rewind (22)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) - run (11)
- seek (11)
- send (11)
-
set
_ bit! (11) - setproperty (22)
- setsockopt (22)
-
singleton
_ class (11) -
singleton
_ method (11) - sleep (11)
- start (83)
-
start
_ service (11) - status (22)
- sym (11)
- symlink (11)
- synchronize (11)
-
to
_ a (6) -
to
_ enum (22) -
to
_ s (11) - trace (11)
- transaction (11)
- transfer (11)
- truncate (11)
- tsort (11)
- tty? (11)
- typekind (11)
- ucmp (11)
-
unalias
_ command (6) -
undef
_ method (11) - ungetc (22)
- unlock (11)
- unparse (11)
- unscan (11)
- uptodate? (11)
- utime (11)
- value= (11)
-
values
_ at (11) - variables (11)
- verify (22)
- version (11)
- visible? (11)
- waitfor (4)
- wakeup (11)
- with (2)
- write (11)
-
write
_ smime (11) - yield (11)
- スレッド (11)
- 制御構造 (11)
検索結果
先頭5件
-
CSV
. new(data , options = Hash . new) -> CSV (18344.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...manually if speed is important. Also
note that IO objects should be opened in binary mode on Windows if this
feature will be used as the line-ending translation can cause
problems with resetting the document position to where it was before the
read ahead. This String will be transcode......ing quote
for a field. (In truth, it reads to the first line ending beyond this
size.) If a quote cannot be found within the limit CSV will raise a
MalformedCSVError, assuming the data is faulty. You can use this limit to
prevent what are effectively DoS attacks on the parser. Howeve......ァイルの読み込み][ruby]{
require "csv"
users =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
File.write("test.csv", users)
File.open("test.csv", "r") do |f|
csv = CSV.new(f, headers: true)
csv.class # => CSV
csv.first # => #<C... -
Range
. new(first , last , exclude _ end = false) -> Range (18309.0) -
first から last までの範囲オブジェクトを生成して返しま す。
...を含まない範囲オブジェクトを生成します
@raise ArgumentError first <=> last が nil の場合に発生します
//emlist[例: 整数の範囲オブジェクトの場合][ruby]{
Range.new(1, 10) # => 1..10
Range.new(1, 10, true) # => 1...10
//}
//emlist[例: 日付オブジ......by]{
require 'date'
Range.new(Date.today, Date.today >> 1).each {|d| puts d }
# => 2017-09-16
# 2017-09-17
# ...
# 2017-10-16
//}
//emlist[例: IPアドレスの範囲オブジェクトの場合][ruby]{
require 'ipaddr'
Range.new(IPAddr.new("192.0.2.1"), IPAddr.new("192.0.2.3")).each {|ip|......のオブジェクトの場合][ruby]{
MyInteger = Struct.new(:value) do
def succ
self.class.new(value + 1)
end
def <=>(other)
value <=> other.value
end
def to_s
value.to_s
end
end
Range.new(MyInteger.new(1), MyInteger.new(3)).each {|i| puts i }
# => 1
# 2
# 3
//}... -
WIN32OLE
_ TYPELIB . new(libname , mjv = nil , miv = nil) -> WIN32OLE _ TYPELIB (18309.0) -
WIN32OLE_TYPELIBオブジェクトを生成します。
...。
@raise WIN32OLERuntimeError 引数で指定したTypeLibが見つかりません。
tlib1 = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
tlib2 = WIN32OLE_TYPELIB.new('{00020813-0000-0000-C000-000000000046}')
tlib3 = WIN32OLE_TYPELIB.new('{00020813-0000-0000-C000-00000......0000046}', 1.7)
tlib4 = WIN32OLE_TYPELIB.new('{00020813-0000-0000-C000-000000000046}', 1, 7)
tlib5 = WIN32OLE_TYPELIB.new("C:\\WINDOWS\\SYSTEM32\\SHELL32.DLL")
puts tlib1.name # => 'Microsoft Excel 14.0 Object Library'
puts tlib2.name # => 'Microsoft Excel 14.0 Object Library'... -
OpenSSL
:: BN . new(str , base=10) -> OpenSSL :: BN (18281.0) -
文字列を多倍長整数オブジェクト(OpenSSL::BN)を生成します。
...します。
2 引数の文字列を big-endian の符号無し整数のバイナリ列とみなして、変換します。
0 引数の文字列を MPI形式の文字列(バイト列)とみなして、変換します。
(最初の4byteはbig-endianでデータ長を表わし、その......列(big-endian)で数値を表す。最上位ビットが立っていると負数)。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("-241") # => -241
OpenSSL::BN.new("ff00",16) # => 65280
OpenSSL::BN.new("\x81",2) # => 129
OpenSSL::BN.new("\xff\x81",2) # => 65409
OpenSSL::BN.new("\x00\x00......\x00\x02\x00\x81", 0) # => 129
OpenSSL::BN.new("\x00\x00\x00\x02\x80\x81", 0) # => -129
OpenSSL::BN.new(1209) # => 1209
//}
@param str 整数を表す文字列
@param base 文字列から整数に変換するときの基数
@raise OpenSSL::BNError 変換に失敗した場合に発生します
反... -
WIN32OLE
_ EVENT . new(ole , event = nil) -> WIN32OLE _ EVENT (18273.0) -
OLEオートメーションサーバのイベント受信機構をオブジェクト化して返します。
...OLEオートメーションサーバのイベント受信機構をオブジェクト化して返します。
newメソッドは、OLEオートメーションサーバがイベント通知に利用するインター
フェイスを取得し、オブジェクトとして返します。
@param ole......ターフェイスを利用します。
@return 指定したオブジェクトのイベントを管理するWIN32OLE_EVENTオブジェクト。
@raise RuntimeError eventパラメータで指定したIIDが見つかりません。また
はオブジェクトがイベントをサ......T.new(ie)
インターフェイス名を指定した例
ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
IIDを指定した例
ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, '{34A715A0-6587-11D0-924A-00... -
Dir
. new(path) -> Dir (18250.0) -
path に対するディレクトリストリームをオープンして返します。
...なります。
@raise Errno::EXXX オープンに失敗した場合に発生します。
//emlist[例: Dir.new][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.new(tmpdir)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
d = Dir.new(tmpdir, encoding......ir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
end
//}
//emlist[例: Dir.open][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.open(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
Dir.open(tmpdir, encoding:......Encoding::UTF_8) do |d|
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
end
end
//}... -
Dir
. new(path , encoding: Encoding . find("filesystem")) -> Dir (18250.0) -
path に対するディレクトリストリームをオープンして返します。
...なります。
@raise Errno::EXXX オープンに失敗した場合に発生します。
//emlist[例: Dir.new][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.new(tmpdir)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
d = Dir.new(tmpdir, encoding......ir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
end
//}
//emlist[例: Dir.open][ruby]{
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
d = Dir.open(tmpdir, encoding: Encoding::UTF_8)
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
d.close
Dir.open(tmpdir, encoding:......Encoding::UTF_8) do |d|
p d.class # => Dir
p d.read.encoding # => #<Encoding:UTF-8>
end
end
//}... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (18243.0) -
プロクシオブジェクトを生成して返します。
...定を保存したハッシュを指定します。
設定として有効なハッシュのキーとその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが有効です。
: :ProxyAuthProc
プロクシ認証を行う Proc オブジ......h_proc = proc{|req, res|
unless c = req['proxy-authorization']
res['Proxy-Authenticate'] = 'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :Pro......proc{|req, res|
res.body.gsub!(/です。/, 'でんがな。')
res.body.gsub!(/ます。/, 'まんがな。')
}
s = WEBrick::HTTPProxyServer.new(ProxyContentHandler: handler, Port: 8080)
//}
: :ProxyVia
true を指定した場合 接続先の HTTP サーバへのリクエストに Via ヘ... -
WIN32OLE
. new(server , host=nil) -> WIN32OLE (18243.0) -
OLEオートメーションサーバを生成します。
...。
@raise WIN32OLERuntimeError オートメーションサーバの呼び出しに失敗しました。
理由はメッセージのHRESULTを調べてください。
WIN32OLE.new('Excel.Application') # => Excel OLE Automation WIN32OLE object.
WIN32OLE.new('{00......024500-0000-0000-C000-000000000046}') # => Excel OLE Automation WIN32OLE object.... -
Proc
. new -> Proc (18238.0) -
ブロックをコンテキストとともにオブジェクト化して返します。
...クを指定しない場合、Ruby 2.7 では
$VERBOSE = true のときには警告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生しま......は明示的に & 引数でうけるべきです。
@raise ArgumentError スタック上にブロックがないのにブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo
pr = Proc.new
pr.call(1)
end
foo {|arg| p arg }
# => 1
//}
これ......umentError が発生します。
//emlist[例][ruby]{
def foo
Proc.new
end
foo
# => -:2:in `new': tried to create Proc object without a block (ArgumentError)
# from -:2:in `foo'
# from -:4:in `<main>'
//}
Proc.new は、Proc#initialize が定義されていれば
オブジェクト...