ライブラリ
- ビルトイン (28)
-
cgi
/ core (1) -
fiddle
/ import (1) - logger (5)
- mkmf (4)
-
net
/ ftp (9) - openssl (4)
- ostruct (2)
- pathname (11)
- rake (3)
-
rdoc
/ context (3) -
rdoc
/ top _ level (2) - resolv (5)
-
rexml
/ document (13) -
rexml
/ sax2listener (2) -
rexml
/ streamlistener (1) -
rubygems
/ command (1) -
rubygems
/ command _ manager (1) -
rubygems
/ commands / build _ command (2) -
rubygems
/ commands / update _ command (1) -
rubygems
/ dependency (1) -
rubygems
/ dependency _ installer (2) -
rubygems
/ dependency _ list (3) -
rubygems
/ installer (1) -
rubygems
/ package / tar _ reader / entry (1) - shell (1)
-
shell
/ command-processor (1) -
shell
/ filter (1) -
shell
/ system-command (2) -
syslog
/ logger (3) -
win32
/ registry (17) - win32ole (19)
クラス
-
Encoding
:: InvalidByteSequenceError (2) -
Gem
:: Command (1) -
Gem
:: CommandManager (1) -
Gem
:: Commands :: BuildCommand (2) -
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: Dependency (1) -
Gem
:: DependencyInstaller (2) -
Gem
:: DependencyList (3) -
Gem
:: Installer (1) -
Gem
:: Package :: TarReader :: Entry (1) - Logger (4)
-
Logger
:: Formatter (1) - Method (2)
- Module (2)
- NameError (2)
-
Net
:: FTP (7) -
Net
:: FTP :: MLSxEntry (2) - Object (3)
-
OpenSSL
:: Config (1) -
OpenSSL
:: PKey :: EC :: Group (1) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
OpenSSL
:: X509 :: Name (1) - OpenStruct (2)
- Pathname (11)
-
RDoc
:: Context (3) -
RDoc
:: TopLevel (2) -
REXML
:: DocType (7) -
REXML
:: Element (3) -
REXML
:: Entity (2) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Resolv
:: DNS (3) -
Resolv
:: DNS :: Name (1) -
Resolv
:: IPv4 (1) - Shell (1)
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (1) -
Shell
:: SystemCommand (2) - String (2)
- Symbol (2)
-
Syslog
:: Logger (2) -
Syslog
:: Logger :: Formatter (1) - Thread (1)
- TracePoint (2)
- UnboundMethod (2)
- WIN32OLE (3)
-
WIN32OLE
_ TYPE (9) -
WIN32OLE
_ TYPELIB (5) -
WIN32OLE
_ VARIABLE (2) -
Win32
:: Registry (17)
モジュール
-
CGI
:: QueryExtension (1) - Enumerable (8)
-
Fiddle
:: Importer (1) - Kernel (4)
-
REXML
:: Namespace (1) -
REXML
:: SAX2Listener (2) -
REXML
:: StreamListener (1) -
Rake
:: TaskManager (2)
キーワード
- =~ (1)
- [] (1)
- []= (1)
- add (3)
-
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ entry (1) -
add
_ module (1) -
attributes
_ of (1) - call (2)
-
callee
_ id (1) - charset (1)
-
check
_ signedness (2) - children (1)
- cleanpath (1)
- clone (1)
- command (1)
-
convertible
_ int (2) -
curve
_ name (1) -
default
_ event _ sources (1) -
default
_ ole _ types (1) -
define
_ method (2) -
define
_ singleton _ method (2) - delete (1)
-
delete
_ key (1) -
delete
_ value (1) -
descriptor
_ length (1) -
destination
_ encoding _ name (1) - dig (1)
- directory? (1)
- doctype (2)
- each (2)
-
each
_ child (2) -
each
_ element _ with _ attribute (1) -
each
_ entry (1) -
each
_ resource (1) -
each
_ value (1) - entity (1)
-
external
_ id (1) -
find
_ command _ possibilities (1) -
find
_ local _ symbol (1) -
find
_ name (1) -
find
_ spec _ by _ name _ and _ version (1) - formatter= (1)
- ftype (3)
-
full
_ name (1) -
generate
_ bin _ symlink (1) -
get
_ all _ gem _ names (1) - getbinaryfile (2)
- getresource (1)
- getresources (1)
- id2name (1)
-
implemented
_ ole _ types (1) -
import
_ symbol (1) - install (1)
- intern (1)
- key? (1)
-
library
_ name (1) -
load
_ gemspecs (1) -
local
_ variables (1) - log (2)
-
make
_ symlink (1) - max (4)
-
max
_ key _ length (1) -
max
_ value _ length (1) -
max
_ value _ name _ length (1) - member? (1)
-
method
_ id (1) - min (4)
- mlsd (2)
- mlst (1)
- namespace (1)
- namespaces (2)
- ndata (1)
-
new
_ ostruct _ member (1) - notation (1)
- notationdecl (1)
-
num
_ keys (1) -
num
_ values (1) -
ok
_ to _ remove? (1) -
ole
_ classes (1) -
ole
_ methods (1) -
ole
_ type (1) -
ole
_ type _ detail (1) -
ole
_ typelib (2) -
ole
_ types (1) -
original
_ name (2) - pathname (1)
- putbinaryfile (2)
-
relative
_ path _ from (1) -
remove
_ by _ name (1) -
resolve
_ args (1) -
respond
_ to _ missing? (1) - setproperty (2)
-
source
_ encoding _ name (1) -
source
_ ole _ types (1) - split (1)
- sticky? (1)
-
subdomain
_ of? (1) -
subject
_ certificate= (1) - symlink? (1)
-
synthesize
_ file _ task (1) -
to
_ name (1) -
to
_ s (3) -
to
_ sym (1) -
unescape
_ filename? (1) - variables (1)
-
which
_ to _ update (1) -
write
_ bin (1) -
write
_ i (1) -
write
_ s (1) - wtime (1)
- yaml? (1)
検索結果
先頭5件
- Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array - Logger
# log(severity , message = nil , progname = nil) -> true - Logger
# log(severity , message = nil , progname = nil) { . . . } -> true - Logger
:: Formatter # call(severity , time , progname , msg) -> String - Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> ()
-
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (18904.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Logger
# log(severity , message = nil , progname = nil) -> true (18904.0) -
メッセージをログに記録します。
メッセージをログに記録します。
ブロックを与えた場合はブロックを評価した返り値をメッセージとしてログに記録します。
ユーザがこのメソッドを直接使うことはあまりありません。
@param severity ログレベル。Logger クラスで定義されている定数を指定します。
この値がレシーバーに設定されているレベルよりも低い場合、
メッセージは記録されません。
@param message ログに出力するメッセージを文字列か例外オブジェクトを指定します。
省略すると nil が用いられます。
@... -
Logger
# log(severity , message = nil , progname = nil) { . . . } -> true (18904.0) -
メッセージをログに記録します。
メッセージをログに記録します。
ブロックを与えた場合はブロックを評価した返り値をメッセージとしてログに記録します。
ユーザがこのメソッドを直接使うことはあまりありません。
@param severity ログレベル。Logger クラスで定義されている定数を指定します。
この値がレシーバーに設定されているレベルよりも低い場合、
メッセージは記録されません。
@param message ログに出力するメッセージを文字列か例外オブジェクトを指定します。
省略すると nil が用いられます。
@... -
Logger
:: Formatter # call(severity , time , progname , msg) -> String (18904.0) -
ログ情報をフォーマットして返します。
ログ情報をフォーマットして返します。
@param severity ログレベル。
@param time 時間。Time クラスのオブジェクト。
@param progname プログラム名
@param msg メッセージ。 -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (18904.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
ディレクトリの各ファイルの情報が
Net::FTP::MLSxEntry のオブジェクトの配列として得られます。
どのような情報を取り出せるかは Net::FTP::MLSxEntry
を参照してください。
Net::FTP#list は
結果が文字列で得られるため、それを適当に解釈する必要がありますが、
このコマンドの結果は適切に解釈された結果を直接得ることができます。
pathname を省略した場合はカレントディレクトリを指定したことになります。
ブロックを渡した場合にはディレクトリの各ファイル... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) (18844.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) { . . . } (18844.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p... -
TracePoint
# callee _ id -> Symbol | nil (18712.0) -
イベントが発生したメソッドの呼ばれた名前を Symbol で返します。 トップレベルであった場合は nil を返します。
イベントが発生したメソッドの呼ばれた名前を Symbol で返します。
トップレベルであった場合は nil を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
e... -
REXML
:: DocType # notation(name) -> REXML :: NotationDecl | nil (18691.0) -
DTD に含まれている記法宣言 (REXML::NotationDecl) で name という名前を持つものを返します。
DTD に含まれている記法宣言 (REXML::NotationDecl) で
name という名前を持つものを返します。
name という名前を持つ記法宣言が存在しない場合は nil を返します。
@param name 検索する記法名 -
Gem
:: DependencyList # ok _ to _ remove?(full _ name) -> bool (18643.0) -
与えられた名前を持つ Gem::Specification を自身から削除しても OK な場合は真を返します。 そうでない場合は、偽を返します。
与えられた名前を持つ Gem::Specification を自身から削除しても OK な場合は真を返します。
そうでない場合は、偽を返します。
与えられた名前を持つ Gem::Specification を自身から削除すると、
依存関係を壊してしまう場合が、それを削除してはいけない場合です。
@param full_name バージョンを含むフルネームで Gem の名前を指定します。
@see Gem::Specification#full_name -
Rake
:: TaskManager # resolve _ args(args) -> Array (18640.0) -
タスクやルールに与えられたパラメータを解釈します。
タスクやルールに与えられたパラメータを解釈します。
@param args パラメータを指定します。
@return [task_name, arg_name_list, prerequisites] を返します。 -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (18520.0) -
other が self のサブドメインであるかどうかを返します。
other が self のサブドメインであるかどうかを返します。
//emlist[][ruby]{
require "resolv"
domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("y.z").subdomain_of?(domai... -
REXML
:: Entity # ndata -> String | nil (18352.0) -
解析対象外実体(unparsed entity)宣言である場合には その記法名(notation name)を返します。
解析対象外実体(unparsed entity)宣言である場合には
その記法名(notation name)を返します。
それ以外の場合は nil を返します。 -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (18340.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (c... -
Net
:: FTP :: MLSxEntry # charset -> String|nil (18322.0) -
エンコーディング情報を返します。
エンコーディング情報を返します。
IANA character set name の値を返します。
情報がない場合は nil を返します。 -
OpenSSL
:: X509 :: ExtensionFactory # subject _ certificate=(name) (18307.0) -
自身に所有者(subject)の証明書オブジェクトを設定します。
自身に所有者(subject)の証明書オブジェクトを設定します。
@param cert 設定する証明書(OpenSSL::X509::Certificate)オブジェクト
@see OpenSSL::X509::ExtensionFactory.new -
Shell
:: SystemCommand # command -> String (18007.0) -
@todo
@todo
コマンド名を返します。 -
Win32
:: Registry # wtime (18007.0) -
@todo
@todo
キー情報の個々の値を返します。 -
Resolv
:: DNS # each _ resource(name , typeclass) {|resource| . . . } -> () (9991.0) -
nameに対応するDNSリソースレコードを取得します。 見つかったリソースをひとつずつブロックに渡します。
nameに対応するDNSリソースレコードを取得します。
見つかったリソースをひとつずつブロックに渡します。
typeclass は以下のいずれかです。
* Resolv::DNS::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Res... -
Resolv
:: DNS # getresource(name , typeclass) -> Resolv :: DNS :: Resource (9991.0) -
nameに対応するDNSリソースレコードを取得します。 最初に見つかったリソースを返します。
nameに対応するDNSリソースレコードを取得します。
最初に見つかったリソースを返します。
typeclass は以下のいずれかです。
* Resolv::DNS::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Resolv::DNS... -
Resolv
:: DNS # getresources(name , typeclass) -> [Resolv :: DNS :: Resource] (9991.0) -
nameに対応するDNSリソースレコードを取得します。 見つかったリソース全てを配列にして返します。
nameに対応するDNSリソースレコードを取得します。
見つかったリソース全てを配列にして返します。
typeclass は以下のいずれかです。
* Resolv::DNS::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Resolv:... -
Module
# define _ method(name) { . . . } -> Symbol (9976.0) -
インスタンスメソッド name を定義します。
インスタンスメソッド name を定義します。
ブロックを与えた場合、定義したメソッドの実行時にブロックが
レシーバクラスのインスタンスの上で BasicObject#instance_eval されます。
@param name メソッド名を String または Symbol を指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
@raise TypeError method に同じクラス、サブクラス、モジュー... -
Module
# define _ method(name , method) -> Symbol (9976.0) -
インスタンスメソッド name を定義します。
インスタンスメソッド name を定義します。
ブロックを与えた場合、定義したメソッドの実行時にブロックが
レシーバクラスのインスタンスの上で BasicObject#instance_eval されます。
@param name メソッド名を String または Symbol を指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
@raise TypeError method に同じクラス、サブクラス、モジュー... -
Win32
:: Registry # [](name , wtype = nil) (9925.0) -
@todo
@todo
レジストリ値 name に value を書き込みます。
オプション引数 wtype を指定した場合は,その型で書き込みます。
指定しなかった場合,value のクラスに応じて次の型で書き込みます:
* Integer
REG_DWORD
* String
REG_SZ
* Array
REG_MULTI_SZ -
String
# to _ sym -> Symbol (9922.0) -
文字列に対応するシンボル値 Symbol を返します。
文字列に対応するシンボル値 Symbol を返します。
なお、このメソッドの逆にシンボルに対応する文字列を得るには
Symbol#to_s または Symbol#id2name を使います。
シンボル文字列にはヌルキャラクタ("\0")、空の文字列の使用も可能です。
//emlist[例][ruby]{
p "foo".intern # => :foo
p "foo".intern.to_s == "foo" # => true
//} -
Win32
:: Registry # each {|name , type , value| . . . } (9910.0) -
@todo
@todo
キーが持つレジストリ値を列挙します。 -
Win32
:: Registry # []=(name , rtype , value = nil) (9907.0) -
@todo
@todo -
Logger
# add(severity , message = nil , progname = nil) -> true (9904.0) -
メッセージをログに記録します。
メッセージをログに記録します。
ブロックを与えた場合はブロックを評価した返り値をメッセージとしてログに記録します。
ユーザがこのメソッドを直接使うことはあまりありません。
@param severity ログレベル。Logger クラスで定義されている定数を指定します。
この値がレシーバーに設定されているレベルよりも低い場合、
メッセージは記録されません。
@param message ログに出力するメッセージを文字列か例外オブジェクトを指定します。
省略すると nil が用いられます。
@... -
Logger
# add(severity , message = nil , progname = nil) { . . . } -> true (9904.0) -
メッセージをログに記録します。
メッセージをログに記録します。
ブロックを与えた場合はブロックを評価した返り値をメッセージとしてログに記録します。
ユーザがこのメソッドを直接使うことはあまりありません。
@param severity ログレベル。Logger クラスで定義されている定数を指定します。
この値がレシーバーに設定されているレベルよりも低い場合、
メッセージは記録されません。
@param message ログに出力するメッセージを文字列か例外オブジェクトを指定します。
省略すると nil が用いられます。
@... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (9700.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (9700.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS... -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (9676.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
オブジェクトに含まれる全ての設定情報を順にブロックに渡し
呼び出します。
渡される値は、セクションを表す文字列、キーを表す文字列、キーに
割り当てられた値の文字列、の3つです。
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name... -
Win32
:: Registry # write _ bin(name , value) (9631.0) -
@todo
@todo
レジストリ値 name に value を書き込みます。
レジストリ値の型はそれぞれ REG_SZ(write_s), REG_DWORD(write_i),
REG_BINARY(write_bin) です。 -
Win32
:: Registry # write _ i(name , value) (9631.0) -
@todo
@todo
レジストリ値 name に value を書き込みます。
レジストリ値の型はそれぞれ REG_SZ(write_s), REG_DWORD(write_i),
REG_BINARY(write_bin) です。 -
Win32
:: Registry # write _ s(name , value) (9631.0) -
@todo
@todo
レジストリ値 name に value を書き込みます。
レジストリ値の型はそれぞれ REG_SZ(write_s), REG_DWORD(write_i),
REG_BINARY(write_bin) です。 -
Enumerable
# max {|a , b| . . . } -> object | nil (9610.0) -
ブロックの評価結果で各要素の大小判定を行い、最大の要素、もしくは最大の n 要素が入った降順の配列を返します。 引数を指定しない形式では要素が存在しなければ nil を返します。 引数を指定する形式では、空の配列を返します。
ブロックの評価結果で各要素の大小判定を行い、最大の要素、もしくは最大の
n 要素が入った降順の配列を返します。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
ブロックの値は、a > b のとき正、
a == b のとき 0、a < b のとき負の整数を、期待しています。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
@raise TypeError ブロックが整数以外を返したときに発生します。
//emlist[例][ruby]{
class Person
... -
Enumerable
# max(n) {|a , b| . . . } -> Array (9610.0) -
ブロックの評価結果で各要素の大小判定を行い、最大の要素、もしくは最大の n 要素が入った降順の配列を返します。 引数を指定しない形式では要素が存在しなければ nil を返します。 引数を指定する形式では、空の配列を返します。
ブロックの評価結果で各要素の大小判定を行い、最大の要素、もしくは最大の
n 要素が入った降順の配列を返します。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
ブロックの値は、a > b のとき正、
a == b のとき 0、a < b のとき負の整数を、期待しています。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
@raise TypeError ブロックが整数以外を返したときに発生します。
//emlist[例][ruby]{
class Person
... -
Enumerable
# min {|a , b| . . . } -> object | nil (9610.0) -
ブロックの評価結果で各要素の大小判定を行い、最小の要素、もしくは最小の n 要素が昇順で入った配列を返します。 引数を指定しない形式では要素が存在しなければ nil を返します。 引数を指定する形式では、空の配列を返します。
ブロックの評価結果で各要素の大小判定を行い、最小の要素、もしくは最小の
n 要素が昇順で入った配列を返します。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
ブロックの値は、a > b のとき正、a == b のとき 0、
a < b のとき負の整数を、期待しています。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
//emlist[例][ruby]{
class Person
attr_reader :name, :age
def initialize... -
Enumerable
# min(n) {|a , b| . . . } -> Array (9610.0) -
ブロックの評価結果で各要素の大小判定を行い、最小の要素、もしくは最小の n 要素が昇順で入った配列を返します。 引数を指定しない形式では要素が存在しなければ nil を返します。 引数を指定する形式では、空の配列を返します。
ブロックの評価結果で各要素の大小判定を行い、最小の要素、もしくは最小の
n 要素が昇順で入った配列を返します。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
ブロックの値は、a > b のとき正、a == b のとき 0、
a < b のとき負の整数を、期待しています。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
//emlist[例][ruby]{
class Person
attr_reader :name, :age
def initialize... -
Rake
:: InvocationChain :: EmptyInvocationChain # member?(task _ name) -> bool (9607.0) -
偽を返します。
偽を返します。 -
Enumerable
# max -> object | nil (9355.0) -
最大の要素、もしくは最大の n 要素が入った降順の配列を返します。 全要素が互いに <=> メソッドで比較できることを仮定しています。
最大の要素、もしくは最大の n 要素が入った降順の配列を返します。
全要素が互いに <=> メソッドで比較できることを仮定しています。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
//emlist[例][ruby]{
a = %w(albatross dog horse)
a.max # => "horse"
a.max(2) # =>... -
Enumerable
# max(n) -> Array (9355.0) -
最大の要素、もしくは最大の n 要素が入った降順の配列を返します。 全要素が互いに <=> メソッドで比較できることを仮定しています。
最大の要素、もしくは最大の n 要素が入った降順の配列を返します。
全要素が互いに <=> メソッドで比較できることを仮定しています。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
//emlist[例][ruby]{
a = %w(albatross dog horse)
a.max # => "horse"
a.max(2) # =>... -
Enumerable
# min -> object | nil (9355.0) -
最小の要素、もしくは最小の n 要素が昇順で入った配列を返します。 全要素が互いに <=> メソッドで比較できることを仮定しています。
最小の要素、もしくは最小の n 要素が昇順で入った配列を返します。
全要素が互いに <=> メソッドで比較できることを仮定しています。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
//emlist[例][ruby]{
a = %w(albatross dog horse)
a.min # => "albatross"
a.min(2) ... -
Enumerable
# min(n) -> Array (9355.0) -
最小の要素、もしくは最小の n 要素が昇順で入った配列を返します。 全要素が互いに <=> メソッドで比較できることを仮定しています。
最小の要素、もしくは最小の n 要素が昇順で入った配列を返します。
全要素が互いに <=> メソッドで比較できることを仮定しています。
引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
該当する要素が複数存在する場合、どの要素を返すかは不定です。
@param n 取得する要素数。
//emlist[例][ruby]{
a = %w(albatross dog horse)
a.min # => "albatross"
a.min(2) ... -
Gem
:: Dependency # =~(other) -> bool (9322.0) -
self と other を比較して真偽値を返します。
self と other を比較して真偽値を返します。
self の Gem::Dependency#name が正規表現として other とマッチしない場合は偽を返します。
self が other との依存関係を満たしていれば真を返します。満たしていなければ偽を返します。 -
TracePoint
# method _ id -> Symbol | nil (1012.0) -
イベントが発生したメソッドの定義時の名前を Symbol で返します。 トップレベルであった場合は nil を返します。
イベントが発生したメソッドの定義時の名前を Symbol で返します。
トップレベルであった場合は nil を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
e... -
OpenStruct
# new _ ostruct _ member(name) -> Symbol (925.0) -
与えられた名前のアクセサメソッドを自身に定義します。
与えられた名前のアクセサメソッドを自身に定義します。
@param name 文字列かシンボルで定義するアクセサの名前を指定します。 -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (904.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
Object
# respond _ to _ missing?(symbol , include _ private) -> bool (658.0) -
自身が symbol で表されるメソッドに対し BasicObject#method_missing で反応するつもりならば真を返します。
自身が symbol で表されるメソッドに対し
BasicObject#method_missing で反応するつもりならば真を返します。
Object#respond_to? はメソッドが定義されていない場合、
デフォルトでこのメソッドを呼びだし問合せます。
BasicObject#method_missing を override した場合にこのメソッドも
override されるべきです。
false を返します。
@param symbol メソッド名シンボル
@param include_private private method も含めたい場合に true が渡されます... -
OpenStruct
# dig(key , . . . ) -> object | nil (622.0) -
self 以下のネストしたオブジェクトを dig メソッドで再帰的に参照して返し ます。途中のオブジェクトが nil であった場合は nil を返します。
self 以下のネストしたオブジェクトを dig メソッドで再帰的に参照して返し
ます。途中のオブジェクトが nil であった場合は nil を返します。
@param key キーを任意個指定します。
require 'ostruct'
address = OpenStruct.new('city' => "Anytown NC", 'zip' => 12345)
person = OpenStruct.new('name' => 'John Smith', 'address' => address)
person.dig(:address, 'zip') ... -
String
# intern -> Symbol (622.0) -
文字列に対応するシンボル値 Symbol を返します。
文字列に対応するシンボル値 Symbol を返します。
なお、このメソッドの逆にシンボルに対応する文字列を得るには
Symbol#to_s または Symbol#id2name を使います。
シンボル文字列にはヌルキャラクタ("\0")、空の文字列の使用も可能です。
//emlist[例][ruby]{
p "foo".intern # => :foo
p "foo".intern.to_s == "foo" # => true
//}