5289件ヒット
[5201-5289件を表示]
(0.128秒)
種類
ライブラリ
- ビルトイン (1932)
-
cgi
/ core (36) -
cgi
/ html (96) - delegate (36)
- drb (24)
- erb (12)
- fileutils (12)
- forwardable (96)
-
irb
/ cmd / help (12) -
irb
/ context (24) -
irb
/ extend-command (24) -
irb
/ input-method (48) -
irb
/ output-method (48) - json (384)
- logger (1)
-
minitest
/ spec (1) -
minitest
/ unit (3) -
net
/ http (12) -
net
/ imap (24) - objspace (12)
- openssl (156)
- ostruct (12)
- pp (12)
- psych (8)
- rake (12)
- rdoc (12)
-
rdoc
/ any _ method (12) -
rdoc
/ code _ object (12) -
rdoc
/ context (96) -
rdoc
/ ghost _ method (12) -
rdoc
/ stats (24) -
rdoc
/ top _ level (12) - rss (12)
- rubygems (12)
-
shell
/ command-processor (12) -
shell
/ error (6) - weakref (12)
-
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (24) -
webrick
/ httpservlet / abstract (12) -
webrick
/ httpstatus (492) - win32ole (336)
クラス
- Array (10)
- BasicObject (72)
- CGI (24)
-
DRb
:: DRbServer (12) - Delegator (36)
- ERB (12)
- Enumerator (62)
-
Enumerator
:: Lazy (48) - Exception (12)
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: FileInputMethod (12) -
IRB
:: InputMethod (12) -
IRB
:: OutputMethod (48) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) -
JSON
:: State (12) - Method (223)
-
MiniTest
:: Unit (1) -
MiniTest
:: Unit :: TestCase (1) - Module (476)
-
Net
:: HTTPGenericRequest (12) -
Net
:: IMAP (24) - NoMethodError (28)
- Object (217)
-
OpenSSL
:: Engine (12) -
OpenSSL
:: SSL :: SSLContext (132) -
OpenSSL
:: X509 :: Store (12) - PP (12)
- Proc (56)
-
RDoc
:: CodeObject (12) -
RDoc
:: Context (96) -
RDoc
:: Stats (24) -
RDoc
:: TopLevel (12) -
Rake
:: FileList (12) - Regexp (48)
-
RubyVM
:: InstructionSequence (108) -
Shell
:: CommandProcessor (12) - String (36)
- Thread (12)
- TracePoint (43)
- UnboundMethod (155)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (24) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (144)
-
WIN32OLE
_ METHOD (96) -
WIN32OLE
_ PARAM (36) -
WIN32OLE
_ TYPE (24)
モジュール
-
CGI
:: HtmlExtension (96) -
CGI
:: QueryExtension (12) - FileUtils (12)
- Forwardable (48)
-
Gem
:: QuickLoader (12) -
IRB
:: ExtendCommandBundle (24) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (181)
- Marshal (24)
-
MiniTest
:: Assertions (1) - ObjectSpace (12)
- RDoc (12)
-
RubyVM
:: AbstractSyntaxTree (10) - SingleForwardable (48)
-
WEBrick
:: HTTPStatus (480)
オブジェクト
- main (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (14)
- == (12)
- === (8)
- >> (14)
-
ARRAY
_ METHODS (12) - AnyMethod (12)
- Application (1)
- Array (24)
- BasicObject (12)
- CantApplyMethod (6)
- DRbObject (12)
- Extend (24)
- FalseClass (24)
- Float (24)
- GhostMethod (12)
- Hash (24)
-
INSECURE
_ METHOD (12) - InstructionSequence (12)
- Integer (24)
- METHODS (12)
-
METHOD
_ CIPHERS (12) -
METHOD
_ MODIFIERS (12) - MetaMethod (12)
- Method (12)
- MethodNotAllowed (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NilClass (24)
- NoDelegateMethods (6)
- NoMethodError (12)
- Numeric (12)
- Object (24)
- OpenStruct (12)
- Proc (12)
-
RC
_ ACCEPTED (12) -
RC
_ BAD _ GATEWAY (12) -
RC
_ BAD _ REQUEST (12) -
RC
_ CONFLICT (12) -
RC
_ CONTINUE (12) -
RC
_ CREATED (12) -
RC
_ EXPECTATION _ FAILED (12) -
RC
_ FORBIDDEN (12) -
RC
_ FOUND (12) -
RC
_ GATEWAY _ TIMEOUT (12) -
RC
_ GONE (12) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (12) -
RC
_ INTERNAL _ SERVER _ ERROR (12) -
RC
_ LENGTH _ REQUIRED (12) -
RC
_ METHOD _ NOT _ ALLOWED (12) -
RC
_ MOVED _ PERMANENTLY (12) -
RC
_ MULTIPLE _ CHOICES (12) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (12) -
RC
_ NOT _ ACCEPTABLE (12) -
RC
_ NOT _ FOUND (12) -
RC
_ NOT _ IMPLEMENTED (12) -
RC
_ NOT _ MODIFIED (12) -
RC
_ NO _ CONTENT (12) -
RC
_ OK (12) -
RC
_ PARTIAL _ CONTENT (12) -
RC
_ PAYMENT _ REQUIRED (12) -
RC
_ PRECONDITION _ FAILED (12) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (12) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (12) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (12) -
RC
_ REQUEST _ TIMEOUT (12) -
RC
_ REQUEST _ URI _ TOO _ LARGE (12) -
RC
_ RESET _ CONTENT (12) -
RC
_ SEE _ OTHER (12) -
RC
_ SERVICE _ UNAVAILABLE (12) -
RC
_ SWITCHING _ PROTOCOLS (12) -
RC
_ TEMPORARY _ REDIRECT (12) -
RC
_ UNAUTHORIZED (12) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (12) -
RC
_ USE _ PROXY (12) -
RUBY
_ METHOD _ FUNC (12) - Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- String (24)
- TrueClass (24)
- UnboundMethod (12)
- UnknownConversionMethodError (12)
-
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ PARAM (12) -
WIN32OLE
_ VARIABLE (12) - WeakRef (12)
- [] (36)
-
_ _ callee _ _ (12) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
absolute
_ path (12) -
add
_ method (12) -
add
_ response _ handler (24) -
add
_ to (12) -
alias
_ method (12) - args (12)
- arity (24)
-
assert
_ respond _ to (1) - backtrace (12)
-
base
_ label (12) - bind (12)
-
bind
_ call (12) -
bm
_ mark (12) - bmcall (12)
- call (24)
-
callee
_ id (12) - caller (36)
- cgi (12)
-
cgi
/ session (12) -
class
_ exec (12) -
client
_ cert _ cb= (12) - clone (24)
-
clone
_ method (12) -
collect
_ method (12) -
convert
_ type (12) -
count
_ nodes (12) - coverage (8)
- curry (22)
- debug (12)
-
def
_ class (12) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - default (12)
-
default
_ event _ sources (12) -
define
_ method (48) -
define
_ singleton _ method (24) -
did
_ you _ mean (12) - dig (10)
- disasm (12)
- disassemble (12)
- dump (24)
- each (48)
-
each
_ method (12) - encode (36)
- encoding (36)
-
enum
_ for (48) - eql? (12)
- eval (24)
- event? (12)
-
event
_ interface (12) - execute (12)
- fail (36)
-
find
_ local _ symbol (24) -
find
_ symbol (12) -
first
_ lineno (12) - form (48)
- gets (12)
- header (12)
- helpcontext (12)
- helpfile (12)
-
initialize
_ methods _ etc (12) -
ins
_ methods _ i (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - inspect (24)
-
install
_ alias _ method (12) -
instance
_ eval (24) -
instance
_ method (12) -
instance
_ methods (12) - io (12)
- irb (12)
-
irb
/ completion (12) -
irb
_ original _ method _ name (12) -
json
_ create (12) - label (12)
- lambda (18)
- lambda? (12)
-
last
_ match (24) - main (12)
- match (24)
-
method
_ added (18) -
method
_ arity (12) -
method
_ call (12) -
method
_ clone (12) -
method
_ defined? (12) -
method
_ eq (12) -
method
_ id (12) -
method
_ inspect (12) -
method
_ list (24) -
method
_ missing (48) -
method
_ proc (12) -
method
_ removed (12) -
method
_ unbind (12) -
method
_ undefined (12) - methods (12)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - new (93)
-
num
_ methods (12) -
num
_ methods= (12) - of (22)
-
offset
_ vtbl (12) -
ole
_ activex _ initialize (12) -
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ method (12) -
ole
_ method _ help (12) -
ole
_ methods (24) -
ole
_ put _ methods (12) -
ole
_ show _ help (12) -
ole
_ type (12) -
original
_ name (24) - out (12)
- owner (24)
- parameters (43)
- params (12)
- path (12)
- pp (12)
- ppx (12)
- print (12)
- private (48)
-
private
_ call? (9) -
private
_ class _ method (24) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - proc (19)
- protected (48)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (24) -
psych
_ yaml _ as (4) - public (48)
-
public
_ class _ method (24) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ methods (24) - puke (1)
- puts (12)
- raise (36)
-
rb
_ call (12) -
rb
_ catch (12) -
rb
_ check _ convert _ type (12) -
rb
_ class _ instance _ methods (12) -
rb
_ class _ private _ instance _ methods (12) -
rb
_ class _ protected _ instance _ methods (12) -
rb
_ convert _ type (12) -
rb
_ define _ global _ function (12) -
rb
_ define _ method (12) -
rb
_ define _ method _ id (12) -
rb
_ define _ module _ function (12) -
rb
_ define _ private _ method (12) -
rb
_ define _ protected _ method (12) -
rb
_ define _ singleton _ method (12) -
rb
_ export _ method (12) -
rb
_ get _ method _ body (12) -
rb
_ mod _ alias _ method (12) -
rb
_ mod _ define _ method (12) -
rb
_ mod _ method (12) -
rb
_ mod _ method _ defined (12) -
rb
_ mod _ private _ method (12) -
rb
_ mod _ public _ method (12) -
rb
_ mod _ remove _ method (12) -
rb
_ mod _ undef _ method (12) -
rb
_ obj _ method (12) -
rb
_ obj _ methods (12) -
rb
_ obj _ private _ methods (12) -
rb
_ obj _ protected _ methods (12) -
rb
_ obj _ singleton _ methods (12) -
rb
_ remove _ method (12) -
rb
_ scan _ args (12) -
rb
_ to _ integer (12) -
rb
_ undef _ method (12) - rdoc (12)
-
rdoc
/ any _ method (12) -
rdoc
/ ghost _ method (12) -
rdoc
/ parser / c (12) -
rdoc
/ parser / ruby (12) - receiver (12)
-
remove
_ method (24) -
remove
_ methods _ etc (12) -
renegotiation
_ cb= (12) -
request
_ method (36) -
request
_ method= (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
return
_ type (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
ruby2
_ keywords (6) -
search
_ method (12) - send (24)
- seplist (12)
-
servername
_ cb= (12) - service (24)
-
session
_ get _ cb= (12) -
session
_ new _ cb= (12) -
session
_ remove _ cb= (12) -
set
_ method _ visibility (12) -
set
_ visibility _ for (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
source
_ location (36) -
super
_ method (22) -
test
_ methods (1) -
tmp
_ dh _ callback= (12) -
to
_ a (12) -
to
_ enum (48) -
to
_ json (108) -
to
_ json _ raw _ object (12) -
to
_ proc (12) -
to
_ s (24) - umcall (12)
-
umethod
_ bind (12) -
umethod
_ call (12) -
umethod
_ proc (12) -
umethod
_ unbind (12) - unbind (12)
-
undef
_ method (12) -
verify
_ callback= (24) -
webrick
/ cgi (12) - xmlrpc (3)
-
yaml
_ as (4) - クラス/メソッドの定義 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 手続きオブジェクトの挙動の詳細 (12)
検索結果
先頭5件
-
Net
:: IMAP # add _ response _ handler(handler) -> () (30.0) -
レスポンスハンドラを追加します。
...ンドラはメインのスレッドとは別のスレッドで
呼びだされることに注意してください。
例:
imap.add_response_handler do |resp|
p resp
end
@param handler 追加するハンドラ(Proc や Method オブジェクト)
@see Net::IMAP#remove_response_handler... -
Net
:: IMAP # add _ response _ handler(handler) {|resp| . . . } -> () (30.0) -
レスポンスハンドラを追加します。
...ンドラはメインのスレッドとは別のスレッドで
呼びだされることに注意してください。
例:
imap.add_response_handler do |resp|
p resp
end
@param handler 追加するハンドラ(Proc や Method オブジェクト)
@see Net::IMAP#remove_response_handler... -
WIN32OLE
_ PARAM # ole _ type -> String (30.0) -
パラメータの型名を取得します。
...つからない場合は、"unknown type"を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
param1 = method.params[0]
puts param1.ole_type # => VARIANT
OLEオートメーションの型名は、対... -
Kernel
. # fail -> () (24.0) -
例外を発生させます。 発生した例外は変数 $! に格納されます。また例外が 発生した時のスタックトレースは変数 $@ に格納され ます。発生した例外は rescue 節で捕捉できます。
...のスタックトレースは変数 $@ に格納され
ます。発生した例外は rescue 節で捕捉できます。
引数無しの場合は、同スレッドの同じブロック内で最後に rescue された
例外オブジェクト ($!) を再発生させます。そのような
例外......捕捉されている時には例外 RuntimeError を発生させます。
//emlist[例][ruby]{
begin
open("nonexist")
rescue
raise #=> `open': No such file or directory - "nonexist" (Errno::ENOENT)
end
//}
引数を渡した場合は、例外メッセージ message を持った error_type......Error,"!!error!!"
rescue ArgumentError => err
rescue NameError => err
rescue TypeError => err
ensure
p err #=> #<NameError: !!error!!>
end
//}
//emlist[例2][ruby]{
def foo num
print 'in method.'
raise "error!!" if num <= 9
rescue RuntimeError
num += 10
print 'in rescue.'
retry
else
p... -
Kernel
. # raise -> () (24.0) -
例外を発生させます。 発生した例外は変数 $! に格納されます。また例外が 発生した時のスタックトレースは変数 $@ に格納され ます。発生した例外は rescue 節で捕捉できます。
...のスタックトレースは変数 $@ に格納され
ます。発生した例外は rescue 節で捕捉できます。
引数無しの場合は、同スレッドの同じブロック内で最後に rescue された
例外オブジェクト ($!) を再発生させます。そのような
例外......捕捉されている時には例外 RuntimeError を発生させます。
//emlist[例][ruby]{
begin
open("nonexist")
rescue
raise #=> `open': No such file or directory - "nonexist" (Errno::ENOENT)
end
//}
引数を渡した場合は、例外メッセージ message を持った error_type......Error,"!!error!!"
rescue ArgumentError => err
rescue NameError => err
rescue TypeError => err
ensure
p err #=> #<NameError: !!error!!>
end
//}
//emlist[例2][ruby]{
def foo num
print 'in method.'
raise "error!!" if num <= 9
rescue RuntimeError
num += 10
print 'in rescue.'
retry
else
p... -
WIN32OLE
# _ setproperty(dispid , args , types) -> () (18.0) -
DISPIDとパラメータの型を指定してオブジェクトのプロパティを設定します。
...イスを事前に知っている場合に、
DISPIDとパラメータの型を指定してプロパティを設定します。
このメソッドはCOMアーリーバインディングを利用することで外部プロセスサー
バとのラウンドトリップを減らして処理速度を......調べてください。
DISPID_CELLS = 238
include WIN32OLE::VARIANT
excel = WIN32OLE.new('Excel.Application')
puts excel._setproperty(558, # VisibleプロパティのDISPIDは558
[true], [VT_BOOL])
workbook = excel.Workbooks.Add
sheet = workbook.Wo......rksheets[1]
sheet._setproperty(DISPID_CELLS, [1, 2, 'hello'], [VT_I2, VT_I2, VT_BSTR])
puts sheet._getproperty(DISPID_CELLS, [1, 2], [VT_I2, VT_I2]).value #=> 'hello'
workbook.Close(:SaveChanges => false)
excel.Quit
DISPIDはWIN32OLE_METHOD#dispidから取得できます。
@see WIN32... -
WIN32OLE
_ VARIABLE (18.0) -
OLEオートメーションの変数情報をRubyで参照するためのクラスです。
...OLE.const_load)、メソッ
ド/プロパティ(WIN32OLE_METHOD)、イベント(WIN32OLE_EVENT)
のほかに変数をクライアントへ提供できます。WIN32OLE_VARIABLEクラスは、サー
バが提供する変数の情報をオブジェクト化します。変数情報にはCOM......E.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables = tobj.variables
variables.each do |variable|
puts "#{variable.name}=#{variable.value}"
end
実行結果は以下となります。
xlChart=-4109
xlDialogSheet=-4116
xlExcel4IntlMacroSheet=4
xlExcel4MacroSheet=... -
WeakRef (18.0)
-
weak reference を実現するクラスです。
...weak reference を実現するクラスです。
WeakRef オブジェクトは与えられたオブジェクトをポイントしますが、
ポイント先のオブジェクトは GC される可能性があります。
アクセスしようとしたときにオブジェクトが GC されてい......れば
WeakRef::RefError が発生します。
delegate も参照してください。
=== サンプルコード
require 'weakref'
foo = Object.new
ref = WeakRef.new(foo)
ref.some_method_of_foo... -
ruby 1
. 8 . 2 feature (18.0) -
ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。
...* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更
* [change]: 変更されたクラス/メソッドなど(互......25)
* cgi/session においてクライアントからセッション ID を指定できてしまうバグが
修正されました。
* cgi/session においてセッション情報を保存するファイル名にセッション ID が
使われるバグが修正されました。
* cgi の......[new]
: OpenSSL::X509::StoreContext#time= [lib] [new]
追加。
: OpenSSL::X509::Name::RFC2253DN [lib] [new]
module for RFC2253 DN format.
: OpenSSL::X509::Name.parse_rfc2253 [lib] [new]
new method to parse RFC2253 DN format.
=== 2004-12-18
: Object#id [ruby] [obsolete]
常...