ライブラリ
- ビルトイン (530)
- base64 (22)
- continuation (11)
- csv (11)
- erb (7)
-
irb
/ inspector (11) - matrix (77)
-
minitest
/ spec (3) - mkmf (77)
- pathname (33)
- prime (66)
- psych (34)
- rake (33)
-
rexml
/ document (33) -
rinda
/ tuplespace (11) -
rubygems
/ dependency _ installer (11) -
rubygems
/ source _ info _ cache (22) - shellwords (11)
- socket (374)
- syslog (22)
- win32ole (22)
クラス
- CSV (11)
- Data (2)
- ERB (7)
- Enumerator (44)
-
Enumerator
:: Lazy (10) -
Gem
:: DependencyInstaller (11) -
Gem
:: SourceInfoCache (22) - Hash (122)
- IO (110)
-
IRB
:: Inspector (11) - Matrix (66)
- Module (6)
- Object (2)
- Pathname (33)
-
Prime
:: PseudoPrimeGenerator (66) -
REXML
:: Child (11) -
REXML
:: Element (22) -
Rake
:: TaskArguments (11) - Socket (132)
- String (27)
- Symbol (5)
- Thread (32)
- Time (11)
- Vector (11)
-
WIN32OLE
_ EVENT (22)
モジュール
- Base64 (22)
- Enumerable (105)
- FileUtils (11)
- Kernel (112)
- Marshal (22)
- Psych (34)
-
Rake
:: TaskManager (11) - Shellwords (11)
-
Socket
:: Constants (242) - Syslog (22)
キーワード
-
AI
_ PASSIVE (22) - Continuation (11)
-
EAI
_ NODATA (22) -
IFF
_ DYNAMIC (22) -
IPV6
_ PKTINFO (11) -
IPV6
_ RECVHOPLIMIT (11) -
IPV6
_ RECVPATHMTU (22) -
IP
_ BLOCK _ SOURCE (22) -
IP
_ HDRINCL (11) -
IP
_ PASSSEC (22) -
IP
_ PKTINFO (11) -
IP
_ PKTOPTIONS (11) -
IP
_ PORTRANGE (22) -
IP
_ RECVDSTADDR (22) -
IP
_ RECVIF (11) -
IP
_ RECVOPTS (11) -
IP
_ RECVSLLA (22) -
IP
_ RECVTOS (11) -
IP
_ RECVTTL (11) -
IP
_ UNBLOCK _ SOURCE (22) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Rubyの起動 (11)
-
SO
_ RECVUCRED (11) -
SO
_ TIMESTAMP (22) -
SO
_ TIMESTAMPNS (22) - TupleSpace (11)
-
angle
_ with (11) - build (22)
-
check
_ signedness (22) - children (11)
-
convertible
_ int (22) -
did
_ you _ mean (11) -
dir
_ config (11) - dump (44)
- each (22)
-
each
_ child (22) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ with _ index (66) -
each
_ with _ object (22) -
enhance
_ with _ matching _ rule (11) - exit (11)
- filter! (12)
-
find
_ gems _ with _ sources (11) -
infect
_ with _ assertions (1) -
keep
_ if (22) -
keys
_ with _ inspector (11) - mask (11)
- mask= (11)
-
max
_ by (44) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) - new (27)
-
on
_ event (11) -
on
_ event _ with _ outargs (11) - popen (110)
-
rb
_ compile _ error _ with _ enc (11) -
rb
_ with _ disable _ interrupt (11) - rdoc (11)
-
rdoc
/ generator / json _ index (11) -
replace
_ with (11) -
report
_ on _ exception (16) -
report
_ on _ exception= (16) -
result
_ with _ hash (7) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (5) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / pristine _ command (11) -
rubygems
/ security (11) -
safe
_ load (12) -
search
_ with _ source (22) - select! (22)
- sh (11)
- shelljoin (11)
-
st
_ init _ numtable _ with _ size (11) -
st
_ init _ strtable _ with _ size (11) -
st
_ init _ table _ with _ size (11) -
start
_ with? (16) - strftime (11)
- system (24)
-
to
_ h (17) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) -
urlsafe
_ decode64 (11) -
urlsafe
_ encode64 (11) -
with
_ config (22) -
with
_ defaults (11) -
with
_ index (54) -
with
_ object (44) - xmlrpc (3)
- 字句構造 (11)
- 正規表現 (11)
検索結果
先頭5件
-
Data
# with(**kwargs) -> Data (27313.0) -
self をコピーしたオブジェクトを返します。
...変わらない「浅い(shallow)」コピーを行います。
キーワード引数が指定された場合、引数に対応するメンバには引数の値が設定されます。存在しないメンバを指定した場合はエラーとなります。
@param kwargs コピーされたオブ......定します。
@raise ArgumentError 存在しないメンバを指定した場合に発生します。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
dog1 = Dog.new("Fred", 5) # => #<data Dog name="Fred", age=5>
dog2 = dog1.with(age: 6) # => #<data Dog name="Fred", age=6>
p dog1......#<data Dog name="Fred", age=5>
dog3 = dog1.with(type: "Terrier") # => ArgumentError (unknown keyword: :type)
# メンバのオブジェクトはコピーされず、同じオブジェクトを参照する。
dog1.name.upcase!
p dog1 # => #<data Dog name="FRED", age=5>
p dog2 # => #<data Dog name=... -
Prime
:: PseudoPrimeGenerator # each _ with _ index -> Enumerator (21316.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}
@see Enumerator#with_index... -
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (21316.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}
@see Enumerator#with_index... -
st
_ table * st _ init _ table _ with _ size(struct st _ hash _ type *type , int size) (18516.0) -
st_table を作成する。_with_size はサイズを指定して生成する。 struct st_hash_type はハッシュ値を得る関数と、同値判定を行う 関数を持つ。
...st_table を作成する。_with_size はサイズを指定して生成する。
struct st_hash_type はハッシュ値を得る関数と、同値判定を行う
関数を持つ。... -
Gem
:: SourceInfoCache . search _ with _ source(*args) -> Array (18513.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param args 検索条件を指定します。Gem::SourceInfoCache#search_with_source と引数を合わせてください。
@see Gem::SourceInfoCache#search_with_source... -
st
_ table * st _ init _ numtable _ with _ size(int size) (18500.0) -
キーが int 型であるハッシュテーブルを作成する。 st_init_table() に int 用の操作関数を渡しているだけ。
...キーが int 型であるハッシュテーブルを作成する。
st_init_table() に int 用の操作関数を渡しているだけ。... -
st
_ table * st _ init _ strtable _ with _ size(int size) (18500.0) -
キーが char* 型であるハッシュテーブルを作成する。 st_init_table に文字列用の操作関数を渡しているだけ。
...キーが char* 型であるハッシュテーブルを作成する。
st_init_table に文字列用の操作関数を渡しているだけ。... -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (18444.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま......//emlist[例][ruby]{
[5, 10, 15].each_with_index do |n, idx|
p [n, idx]
end
# => [5, 0]
# [10, 1]
# [15, 2]
//}
//emlist[引数ありの例][ruby]{
require 'stringio'
StringIO.new("foo|bar|baz").each_with_index("|") do |s, i|
p [s, i]
end
# => ["foo|", 0]
# ["bar|", 1]
# ["baz", 2]......//}
@see Enumerator#with_index... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (18407.0) -
パラメータにデフォルト値をセットします。
...@param defaults デフォルト値として使用するキーと値を格納したハッシュを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value......2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
arguments.with_defaults({ default_key: "default_value"}) # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
arguments.to_hash # =......> {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
end
//}... -
ERB
# result _ with _ hash(hash) -> String (18401.0) -
ERB をハッシュオブジェクトで指定されたローカル変数を持つ 新しいトップレベルバインディングで実行し、結果の文字列を返します。
...ERB をハッシュオブジェクトで指定されたローカル変数を持つ
新しいトップレベルバインディングで実行し、結果の文字列を返します。
@param hash ローカル変数名をキーにしたハッシュ
@see ERB#result... -
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (18401.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返......します。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。...