ライブラリ
- ビルトイン (469)
- bigdecimal (84)
- csv (6)
- date (4)
- drb (24)
-
drb
/ timeridconv (12) - fiddle (48)
- ipaddr (28)
-
irb
/ context (36) -
irb
/ ext / save-history (12) -
irb
/ output-method (12) -
minitest
/ spec (1) -
rdoc
/ rdoc (12) - resolv (24)
-
rexml
/ document (24) -
rexml
/ sax2listener (12) -
rinda
/ tuplespace (48) -
rubygems
/ package / tar _ header (12) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache _ entry (12) - scanf (12)
- socket (60)
クラス
-
ARGF
. class (24) - BasicObject (36)
- BigDecimal (84)
- Binding (7)
-
CSV
:: Row (6) -
DRb
:: DRbIdConv (12) -
DRb
:: DRbObject (12) -
DRb
:: TimerIdConv (12) - Data (6)
- Date (2)
- DateTime (2)
-
Fiddle
:: Pointer (48) -
Gem
:: Package :: TarHeader (12) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCacheEntry (12) - IO (24)
- IPAddr (28)
-
IRB
:: Context (36) -
IRB
:: OutputMethod (12) - MatchData (6)
- Module (193)
- Object (36)
-
RDoc
:: RDoc (12) -
REXML
:: Element (24) - Range (36)
- Refinement (4)
- Regexp (12)
-
Resolv
:: DNS :: Resource :: MX (12) -
Resolv
:: DNS :: Resource :: SOA (12) -
Rinda
:: TupleSpace (48) - Socket (24)
- String (36)
- Struct (24)
- Symbol (12)
- Thread (24)
- Time (2)
- UDPSocket (36)
モジュール
-
IRB
:: HistorySavingAbility (12) -
REXML
:: SAX2Listener (12)
キーワード
- * (12)
- + (12)
- +@ (12)
- - (12)
- -@ (12)
-
/ (12) - === (36)
-
_ _ drbref (12) -
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
add
_ namespace (12) -
alias
_ method (12) - bind (12)
- binmode (12)
- binmode? (12)
- captures (2)
- connect (12)
- deconstruct (14)
-
deconstruct
_ keys (20) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
deprecate
_ constant (12) - div (12)
- document (12)
- encoding (12)
-
end
_ prefix _ mapping (12) -
import
_ methods (4) - include? (12)
-
infect
_ with _ assertions (1) -
inplace
_ mode (12) -
inplace
_ mode= (12) -
inspect
_ mode= (12) -
instance
_ eval (24) -
load
_ history (12) - mask (12)
- member? (12)
- namespace (12)
- notify (12)
- ppx (12)
- preference (12)
- prefix (20)
- prefix= (8)
- private (48)
-
prompt
_ mode (12) -
prompt
_ mode= (12) - protected (48)
- ptr (12)
- public (48)
- quo (12)
- read (12)
-
read
_ all (12) - refine (12)
- refresh (24)
- refresh! (12)
- scanf (12)
- send (60)
- sign (12)
-
singleton
_ method _ undefined (12) -
source
_ location (7) -
start
_ with? (8) - take (12)
-
to
_ a (6) -
to
_ obj (24) -
to
_ proc (12) - values (6)
検索結果
先頭5件
-
Fiddle
:: Pointer # ref -> Fiddle :: Pointer (18208.0) -
自身を指す Pointer オブジェクトを返します。 C 言語におけるポインタへのアドレス演算子の適用 &p と同じです。
...値には、free 関数がセットされず、size は 0 とされます。
例:
require 'fiddle'
s = 'abc'
cptr = Fiddle::Pointer[s]
cref = cptr.ref
p cref.to_s(4).unpack('l*')[0] #=> 136121648
p cptr.to_i #=> 136121648
p cref.ptr.to_s #=> "abc"... -
DRb
:: DRbObject # _ _ drbref -> Integer|nil (18201.0) -
リモートオブジェクトの識別子を返します。
...リモートオブジェクトの識別子を返します。
DRb::DRbObject.new_with_uri で取り出したフロントオブジェクトは
識別子を持たないため nil を返します。... -
REXML
:: SAX2Listener # end _ prefix _ mapping(prefix) -> () (12301.0) -
名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。
...名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。
@param prefix 接頭辞の文字列が渡されます... -
String
# delete _ prefix!(prefix) -> self | nil (12301.0) -
self の先頭から破壊的に prefix を削除します。
...prefix を削除します。
@param prefix 先頭から削除する文字列を指定します。
@return 削除した場合は self、変化しなかった場合は nil
//emlist[][ruby]{
"hello".delete_prefix!("hel") # => "lo"
"hello".delete_prefix!("llo") # => nil
//}
@see String#delete_prefi......x
@see String#delete_suffix!
@see String#start_with?... -
String
# delete _ prefix(prefix) -> String (12301.0) -
文字列の先頭から prefix を削除した文字列のコピーを返します。
...ら prefix を削除した文字列のコピーを返します。
@param prefix 先頭から削除する文字列を指定します。
@return 文字列の先頭から prefix を削除した文字列のコピー
//emlist[][ruby]{
"hello".delete_prefix("hel") # => "lo"
"hello".delete_prefix("llo")......# => "hello"
//}
@see String#delete_prefix!
@see String#delete_suffix
@see String#start_with?... -
RDoc
:: RDoc # document(argv) -> nil (12107.0) -
argv で与えられた引数を元にドキュメントをフォーマットして指定されたディ レクトリに出力します。
...ドラインで rdoc コマンドに指定するのと同じ引数を文字
列の配列で指定します。
@raise RDoc::Error ドキュメントの処理中にエラーがあった場合に発生します。
指定できるオプションについては、lib:rdoc#usage を参照し......てくださ
い。出力ディレクトリが指定されなかった場合はカレントディレクトリ の
doc 以下に出力します。... -
IPAddr
# prefix=(prefixlen) (9201.0) -
プリフィックス長を prefixlen に設定します。
...プリフィックス長を prefixlen に設定します。
@param prefixlen 設定したいプリフィックス長をビット数で指定します。
@raise IPAddr::InvalidPrefixError 引数 prefixlen に整数以外のオブジェクトを指定した場合に発生します。... -
Module
# refine(klass) { . . . } -> Module (9201.0) -
引数 klass で指定したクラスまたはモジュールだけに対して、ブロックで指定した機能を提供で きるモジュールを定義します。定義した機能は Module#refine を使用せずに直 接 klass に対して変更を行う場合と異なり、限られた範囲のみ有効にできます。 そのため、既存の機能を局所的に修正したい場合などに用いる事ができます。
...定義した機能は Module#refine を使用せずに直
接 klass に対して変更を行う場合と異なり、限られた範囲のみ有効にできます。
そのため、既存の機能を局所的に修正したい場合などに用いる事ができます。
refinements 機能の詳細......照してください。
* https://magazine.rubyist.net/articles/0041/0041-200Special-refinement.html
* https://docs.ruby-lang.org/en/master/syntax/refinements_rdoc.html
定義した機能は main.using, Module#using を実行した場合のみ
有効になります。
@param klass 拡張する......した機能を持つ無名のモジュールを返します。
//emlist[例][ruby]{
class C
def foo
puts "C#foo"
end
end
module M
refine C do
def foo
puts "C#foo in M"
end
end
end
x = C.new
x.foo # => "C#foo"
using M
x = C.new
x.foo # => "C#foo in M"
//}
@see main.us... -
Gem
:: Package :: TarHeader # prefix -> String (9101.0) -
tar のヘッダに含まれる prefix を返します。
...tar のヘッダに含まれる prefix を返します。... -
Gem
:: SourceIndex # refresh! -> self (9101.0) -
自身を再作成します。
...自身を再作成します。
@raise StandardError 自身がディスクから読み込んで作成されていない場合に発生します。...