ライブラリ
- ビルトイン (238)
- csv (77)
- e2mmap (24)
- erb (11)
-
irb
/ extend-command (11) - json (66)
-
mutex
_ m (22) -
net
/ imap (11) -
net
/ pop (11) - openssl (429)
- optparse (22)
- psych (17)
-
rdoc
/ generator / json _ index (11) -
rdoc
/ top _ level (22) -
rubygems
/ digest / digest _ adapter (11) -
rubygems
/ ext / builder (11) -
shell
/ command-processor (6) - tracer (55)
-
webrick
/ httpservlet / filehandler (11) -
webrick
/ httpstatus (11) - win32ole (33)
クラス
- Array (11)
- CSV (77)
- Data (4)
- Dir (66)
- ERB (11)
-
Enumerator
:: Lazy (11) - File (55)
-
Gem
:: DigestAdapter (11) -
Gem
:: Ext :: Builder (11) - IO (44)
-
JSON
:: Parser (11) -
JSON
:: State (22) - Module (11)
-
Net
:: IMAP (11) -
Net
:: POP3 (11) -
OpenSSL
:: ASN1 :: BMPString (22) -
OpenSSL
:: ASN1 :: BitString (22) -
OpenSSL
:: ASN1 :: Boolean (11) -
OpenSSL
:: ASN1 :: Enumerated (11) -
OpenSSL
:: ASN1 :: GeneralString (22) -
OpenSSL
:: ASN1 :: GeneralizedTime (22) -
OpenSSL
:: ASN1 :: GraphicString (22) -
OpenSSL
:: ASN1 :: IA5String (22) -
OpenSSL
:: ASN1 :: ISO64String (22) -
OpenSSL
:: ASN1 :: Integer (22) -
OpenSSL
:: ASN1 :: Null (11) -
OpenSSL
:: ASN1 :: NumericString (22) -
OpenSSL
:: ASN1 :: ObjectId (22) -
OpenSSL
:: ASN1 :: OctetString (22) -
OpenSSL
:: ASN1 :: PrintableString (22) -
OpenSSL
:: ASN1 :: Sequence (11) -
OpenSSL
:: ASN1 :: Set (11) -
OpenSSL
:: ASN1 :: T61String (22) -
OpenSSL
:: ASN1 :: UTCTime (22) -
OpenSSL
:: ASN1 :: UTF8String (22) -
OpenSSL
:: ASN1 :: UniversalString (22) -
OpenSSL
:: ASN1 :: VideotexString (22) - OptionParser (22)
-
RDoc
:: Generator :: JsonIndex (11) -
RDoc
:: TopLevel (22) - Range (11)
-
Shell
:: CommandProcessor (6) - Struct (14)
- TracePoint (11)
- Tracer (55)
-
WEBrick
:: HTTPServlet :: FileHandler (11) -
WIN32OLE
_ TYPE (22) -
WIN32OLE
_ TYPELIB (11)
モジュール
- Exception2MessageMapper (24)
-
IRB
:: ExtendCommandBundle (11) - JSON (33)
-
Mutex
_ m (22) - Psych (17)
-
WEBrick
:: HTTPStatus (11)
キーワード
- APOP (11)
- Fail (6)
- Raise (6)
- [] (33)
- accept (11)
-
add
_ authenticator (11) -
add
_ filter (22) -
all
_ classes _ and _ modules (11) -
append
_ features (11) -
class
_ name (11) -
create
_ id (11) -
create
_ id= (11) -
def
_ builtin _ commands (6) -
def
_ exception (6) -
def
_ extend _ command (11) - define (4)
-
define
_ aliases (11) -
find
_ class _ named (11) -
for
_ fd (11) -
from
_ state (11) - nesting (11)
- new (608)
-
ole
_ classes (11) - on (11)
- open (132)
- path (11)
- read (11)
- readlines (11)
- reject (11)
-
remove
_ handler (11) -
safe
_ load (17) -
set
_ get _ line _ procs (22) - stat (11)
検索結果
先頭5件
- RDoc
:: TopLevel . find _ class _ named(name) -> RDoc :: NormalClass | RDoc :: SingleClass | nil - Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class - Gem
:: Ext :: Builder . class _ name -> String - WIN32OLE
_ TYPE . ole _ classes(libname) -> [WIN32OLE _ TYPE] - OpenSSL
:: ASN1 :: PrintableString . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString
-
RDoc
:: TopLevel . find _ class _ named(name) -> RDoc :: NormalClass | RDoc :: SingleClass | nil (12502.0) -
RDoc が収集したクラスの内、name で指定した名前のクラスを返します。見つ からなかった場合は nil を返します。
...RDoc が収集したクラスの内、name で指定した名前のクラスを返します。見つ
からなかった場合は nil を返します。
@param name クラス名を文字列で指定します。... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (9302.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定しま......す。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@param superklass 定義する例外クラスのスーパークラスを指定します。
省略すると StandardError を使用します。
@return 定義した例... -
Gem
:: Ext :: Builder . class _ name -> String (9202.0) -
@todo
@todo
ビルダーのクラス名を返します。 -
WIN32OLE
_ TYPE . ole _ classes(libname) -> [WIN32OLE _ TYPE] (9201.0) -
TypeLibで定義されているすべての型情報を取得します。
...TypeLibで定義されているすべての型情報を取得します。
@param libname 生成するTypeLibのレジストリ上のドキュメント文字列
(WIN32OLE_TYPELIB#name)または
GUID(WIN32OLE_TYPELIB#guid)またはTLBファイル名を......eturn TypeLibに格納されているすべての型をWIN32OLE_TYPEオブジェクトの配列として返します。
@raise WIN32OLERuntimeError 引数で指定したTypeLibが見つかりません。
types = WIN32OLE_TYPE.ole_classes('Microsoft Excel 14.0 Object Library')
classes = types.......map{|k| k.name} # => ["Adjustments", "CalloutFormat", ...]
Ruby-1.9.1からは、TypeLibに定義されているすべての型を取得するには、
WIN32OLE_TYPELIBオブジェクトのWIN32OLE_TYPELIB#ole_typesメ
ソッドを利用してください。... -
OpenSSL
:: ASN1 :: PrintableString . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString (6408.0) -
ASN.1 の PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを 生成します。
...ASN.1 の PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::PRINTABLESTRING となります。
@param value ASN.1 値を表す Ruby......のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
RDoc
:: TopLevel . all _ classes _ and _ modules -> [RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule] (6401.0) -
RDoc が収集したクラス、モジュールを配列で返します。
RDoc が収集したクラス、モジュールを配列で返します。 -
Data
. define(*args) {|subclass| block } -> Class (6309.0) -
Data クラスに新しいサブクラスを作って、それを返します。
...ドが定義されています。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)
p fred.name # => "Fred"
p fred.age # => 5
//}
メンバの値を書き換えることはできません。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)......ンマッチに利用できます。
//emlist[例][ruby]{
class HTTPFetcher
Response = Data.define(:body)
NotFound = Data.define
def get(url)
# ダミーの実装
if url == "http://example.com/"
Response.new(body: "Current time is #{Time.now}")
else
NotFound.new
e......end
end
def fetch(url)
fetcher = HTTPFetcher.new
case fetcher.get(url)
in HTTPFetcher::Response(body)
body
in HTTPFetcher::NotFound
:NotFound
end
end
p fetch("http://example.com/") # => "Current time is 2023-01-10 10:00:53 +0900"
p fetch("http://example.com/404") # => :NotFo... -
Exception2MessageMapper
. Fail(klass = E2MM , exception _ class = nil , *rest) -> () (6309.0) -
登録されている情報を使用して、例外を発生させます。
...@param klass 一階層上となるクラス名を指定します。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない... -
JSON
. create _ id=(identifier) (6237.0) -
json_create メソッドで使用するクラスを決定するために使用する値をセットします。
... identifier 識別子を指定します。
//emlist[例][ruby]{
require "json"
require "json/add/core"
JSON.create_id # => "json_class"
puts (1..5).to_json # => {"json_class":"Range","a":[1,5,false]}
JSON.create_id = "my_json_class" # => "my_json_class"
JSON.create_i......d # => "my_json_class"
puts (1..5).to_json # => {"my_json_class":"Range","a":[1,5,false]}
//}... -
Data
. define(*args) -> Class (6209.0) -
Data クラスに新しいサブクラスを作って、それを返します。
...ドが定義されています。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)
p fred.name # => "Fred"
p fred.age # => 5
//}
メンバの値を書き換えることはできません。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)......ンマッチに利用できます。
//emlist[例][ruby]{
class HTTPFetcher
Response = Data.define(:body)
NotFound = Data.define
def get(url)
# ダミーの実装
if url == "http://example.com/"
Response.new(body: "Current time is #{Time.now}")
else
NotFound.new
e......end
end
def fetch(url)
fetcher = HTTPFetcher.new
case fetcher.get(url)
in HTTPFetcher::Response(body)
body
in HTTPFetcher::NotFound
:NotFound
end
end
p fetch("http://example.com/") # => "Current time is 2023-01-10 10:00:53 +0900"
p fetch("http://example.com/404") # => :NotFo... -
Exception2MessageMapper
. Raise(klass = E2MM , exception _ class = nil , *rest) -> () (6209.0) -
登録されている情報を使用して、例外を発生させます。
...@param klass 一階層上となるクラス名を指定します。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない... -
OpenSSL
:: ASN1 :: PrintableString . new(value) -> OpenSSL :: ASN1 :: PrintableString (6208.0) -
ASN.1 の PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを 生成します。
...ASN.1 の PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::PRINTABLESTRING となります。
@param value ASN.1 値を表す Ruby......のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (6208.0) -
@todo
...@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]...