るりまサーチ

最速Rubyリファレンスマニュアル検索!
2522件ヒット [2501-2522件を表示] (0.136秒)
トップページ > クエリ:r[x] > クエリ:begin[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils rm_r

ライブラリ

モジュール

キーワード

検索結果

<< < ... 24 25 26 >>

Syslog.#open(ident=$0, options=Syslog::LOG_PID|Syslog::LOG_CONS, facility=Syslog::LOG_USER) { |syslog| ... } -> self (106.0)

与えられた引数でsyslogを開きます。以降、他の Syslog モジュール関数が使 用可能となります。

...さい。

@param ident すべてのログにつく識別子で、どのプログラムから送られ
たログなのかを識別するために使われる文字列を指定します。
指定しない場合はプログラム名が使われます。

@param options Syslog...
...Syslog::LOG_PID|Syslog::LOG_CONSの値が使われ
ます。使用できる値はSyslog::Constants を参照してください。

@param facility ログ出力を行うプログラムの種別を指定します。syslog はこの値
にしたがって出力先となる...
...た場合はRuntimeErrorが発生します。

@return self を返します。

syslogを既に開いていた場合はRuntimeErrorが発生します。

r
equire 'syslog'

Syslog.open("syslogtest")
Syslog.log(Syslog::LOG_WARNING, "the sky is falling in %d seconds!", 100)
begin

Syslog.ope...

クラス/メソッドの定義 (36.0)

クラス/メソッドの定義 * クラス/メソッドの定義: * class * singleton_class * module * method * operator * nest_method * eval_method * singleton_method * class_method * limit * 定義に関する操作: * alias * undef * defined

...* module
* method
* operator
* nest_method
* eval_method
* singleton_method
* class_method
* limit
* 定義に関する操作:
* alias
* undef
* defined

===[a:class] クラス定義

//emlist[例][ruby]{
class Foo < Super
def test
# ...
end
# ....
...class 識別子 [`<' superclass ]
式..
end

文法:

class 識別子 [`<' superclass ]
式..
[rescue [error_type,..] [=> evar] [then]
式..]..
[else
式..]
[ensure
式..]
e...
...の大文字で始まる識別子です。

r
escue/ensure 節を指定し、例外処理ができます。
例外処理についてはd:spec/control#begin参照。

クラス定義は、識別子で指定した定数へのクラスの代入になります
(Ruby では、クラスもオブジェク...
<< < ... 24 25 26 >>