280件ヒット
[1-100件を表示]
(0.071秒)
別のキーワード
種類
- インスタンスメソッド (154)
- 特異メソッド (74)
- 文書 (41)
- 定数 (11)
ライブラリ
- ビルトイン (85)
-
irb
/ context (11) -
irb
/ ext / history (11) -
irb
/ ext / save-history (66) -
irb
/ extend-command (11) -
irb
/ inspector (22) - psych (22)
- socket (11)
クラス
-
IRB
:: Context (55) -
IRB
:: Inspector (22) -
RubyVM
:: InstructionSequence (77) - Socket (11)
モジュール
-
IRB
:: ExtendCommandBundle (11) -
IRB
:: HistorySavingAbility (33) - Kernel (22)
-
RubyVM
:: AbstractSyntaxTree (8)
キーワード
-
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
OVERRIDE
_ PRIVATE _ ONLY (11) -
absolute
_ path (11) -
base
_ label (11) -
compile
_ file (11) -
def
_ inspector (11) -
eval
_ history (11) - extended (11)
-
first
_ lineno (11) - gethostbyname (11)
-
history
_ file (11) -
init
_ save _ history (11) -
keys
_ with _ inspector (11) - label (11)
-
load
_ history (11) - of (19)
- path (11)
-
prompt
_ mode (11) -
psych
_ y (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
save
_ history (22)
検索結果
先頭5件
-
Kernel
# y(*objects) -> String (18232.0) -
objects を YAML document に変換します。
...objects を YAML document に変換します。
このメソッドは irb 上でのみ定義されます。
syck に y メソッドがあるため、
psych_y が別名として定義されています。将来的に
syck が廃止された場合 psych_y は廃止
される予定であるため、......特別の事情がない限り y を用いてください。
@param objects YAML document に変換する Ruby のオブジェクト... -
IRB
:: Context # init _ save _ history -> () (9238.0) -
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える ようにします。
...自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える
ようにします。
@see IRB::HistorySavingAbility.extended... -
IRB
:: Inspector . keys _ with _ inspector(inspector) -> Array (9234.0) -
引数で指定した IRB::Inspector に対応する key の配列を返します。
...引数で指定した IRB::Inspector に対応する key の配列を返します。
@param inspector IRB::Inspector オブジェクトを指定します。
IRB::Inspector.keys_with_inspector(IRB::Inspector::INSPECTORS[true])
# => [true, :p, "p", :inspect, "inspect"]... -
IRB
:: ExtendCommandBundle :: OVERRIDE _ PRIVATE _ ONLY -> 2 (9222.0) -
irb でコマンドのエイリアスを定義する際に、既にこれからエイリアス先に指 定したメソッド名と同名の public メソッドが定義済みではなかった場合のみ、 エイリアスを定義する事を指定するフラグです。
...
irb でコマンドのエイリアスを定義する際に、既にこれからエイリアス先に指
定したメソッド名と同名の public メソッドが定義済みではなかった場合のみ、
エイリアスを定義する事を指定するフラグです。
@see IRB::ExtendComman... -
IRB
:: HistorySavingAbility # load _ history -> () (9222.0) -
irb のヒストリを履歴ファイルから読み込みます。
...
irb のヒストリを履歴ファイルから読み込みます。
@see lib:irb#history... -
IRB
:: HistorySavingAbility # save _ history -> () (9222.0) -
irb のヒストリを履歴ファイルに保存します。
...
irb のヒストリを履歴ファイルに保存します。
@see lib:irb#history... -
IRB
:: Context # history _ file -> String | nil (9212.0) -
履歴ファイルのパスを返します。
...履歴ファイルのパスを返します。
@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。
@see lib:irb#history... -
IRB
:: Context # eval _ history -> Integer | nil (9206.0) -
実行結果の履歴の最大保存件数を Integer か nil で返します。
...履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 を返し
た場合は無制限に保存します。nil を返した場合は追加の保存は行いません。
@see IRB::Context#eval_history=... -
IRB
:: Context # save _ history -> Integer | nil (9206.0) -
履歴の最大保存件数を Integer か nil で返します。
...履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 以下や
nil を返した場合は追加の保存は行いません。
@see lib:irb#history... -
Socket
. gethostbyname(host) -> Array (6242.0) -
ホスト名または IP アドレス(指定方法に関しては lib:socket#host_formatを参照) からホストの情報を返します。
...unpack できます。
=== 使用例
irb(main):009:0> require 'socket'
irb(main):009:0> Socket.gethostbyname("210.251.121.214")
["helium.ruby-lang.org", ["helium"], 2, "\322\373y\326"]
irb(main):009:0> Socket.unpack_sockaddr_in(Socket.gethostbyname("210.251.121.214")[3])[1]
"210.251...