別のキーワード
ライブラリ
- ビルトイン (859)
- base64 (24)
- continuation (12)
- csv (24)
- drb (24)
- erb (16)
-
irb
/ inspector (12) - matrix (84)
-
minitest
/ spec (3) - mkmf (108)
- pathname (36)
- prime (72)
- psych (50)
- rake (36)
-
rexml
/ document (36) -
rinda
/ tuplespace (12) -
rubygems
/ dependency _ installer (12) -
rubygems
/ source _ info _ cache (24) - shellwords (12)
- socket (528)
- syslog (24)
- win32ole (24)
クラス
- CSV (12)
-
DRb
:: DRbObject (24) - Data (3)
- ERB (16)
- Enumerator (48)
-
Enumerator
:: Lazy (12) -
Gem
:: DependencyInstaller (12) -
Gem
:: SourceInfoCache (24) - Hash (138)
- IO (168)
-
IRB
:: Inspector (12) - Matrix (72)
- Method (80)
- Module (25)
- Object (14)
- Pathname (36)
-
Prime
:: PseudoPrimeGenerator (72) - Proc (6)
-
REXML
:: Child (12) -
REXML
:: Element (24) -
Rake
:: TaskArguments (12) - Refinement (4)
- Socket (264)
- String (85)
- Symbol (12)
- Thread (36)
- Time (12)
- Vector (12)
-
WIN32OLE
_ EVENT (24)
モジュール
- Base64 (24)
- Enumerable (131)
- FileUtils (12)
- Kernel (172)
- Marshal (24)
- Psych (38)
-
Rake
:: TaskManager (12) - Shellwords (12)
-
Socket
:: Constants (264) - Syslog (24)
キーワード
- < (12)
- === (8)
-
AI
_ PASSIVE (24) - CSV (12)
- Continuation (12)
-
EAI
_ NODATA (24) -
IFF
_ DYNAMIC (24) -
IPV6
_ PKTINFO (24) -
IPV6
_ RECVHOPLIMIT (24) -
IPV6
_ RECVPATHMTU (24) -
IP
_ BLOCK _ SOURCE (24) -
IP
_ HDRINCL (24) -
IP
_ PASSSEC (24) -
IP
_ PKTINFO (24) -
IP
_ PKTOPTIONS (24) -
IP
_ PORTRANGE (24) -
IP
_ RECVDSTADDR (24) -
IP
_ RECVIF (24) -
IP
_ RECVOPTS (24) -
IP
_ RECVSLLA (24) -
IP
_ RECVTOS (24) -
IP
_ RECVTTL (24) -
IP
_ UNBLOCK _ SOURCE (24) - Marshal フォーマット (12)
- Method (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Rubyの起動 (12)
-
SO
_ RECVUCRED (24) -
SO
_ TIMESTAMP (24) -
SO
_ TIMESTAMPNS (24) - TupleSpace (12)
- [] (12)
-
_ _ drbref (12) - abort (24)
-
angle
_ with (12) - build (24)
- call (24)
-
check
_ signedness (24) - children (12)
- chunk (12)
- compact (4)
-
convertible
_ int (24) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) -
did
_ you _ mean (12) -
dir
_ config (12) - drb (12)
-
drb
/ extservm (12) -
drb
/ gw (12) -
drb
/ ssl (12) -
drb
/ unix (12) - dump (48)
- each (24)
-
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ with _ index (72) -
each
_ with _ object (24) -
end
_ with? (18) -
enhance
_ with _ matching _ rule (12) - exit (12)
- filter! (14)
-
find
_ gems _ with _ sources (12) -
import
_ methods (4) -
infect
_ with _ assertions (1) -
keep
_ if (24) -
keys
_ with _ inspector (12) - mask (12)
- mask= (12)
-
max
_ by (48) - mkmf (12)
-
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) - name (12)
-
net
/ pop (12) - new (41)
-
new
_ with _ uri (12) -
on
_ event (12) -
on
_ event _ with _ outargs (12) - openssl (12)
- owner (12)
- popen (168)
-
rb
_ compile _ error _ with _ enc (12) -
rb
_ with _ disable _ interrupt (12) - rdoc (12)
-
rdoc
/ generator / json _ index (12) -
rdoc
/ markdown (12) - receiver (12)
-
replace
_ with (12) -
report
_ on _ exception (18) -
report
_ on _ exception= (18) - result (8)
-
result
_ with _ hash (8) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby2
_ keywords (18) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ security (12) -
safe
_ load (14) -
search
_ with _ source (24) - select! (24)
- sh (12)
- shelljoin (12)
-
st
_ init _ numtable _ with _ size (12) -
st
_ init _ strtable _ with _ size (12) -
st
_ init _ table _ with _ size (12) -
start
_ with? (18) - strftime (12)
- system (28)
-
test
/ unit (1) -
to
_ h (19) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) -
with
_ config (24) -
with
_ defaults (12) -
with
_ index (60) -
with
_ object (48) -
with
_ werror (24) - xmlrpc (3)
- yaml (12)
-
yaml
_ tag (12) - パターンマッチ (12)
- 字句構造 (12)
- 正規表現 (12)
検索結果
先頭5件
-
Data
# with(**kwargs) -> Data (18113.0) -
self をコピーしたオブジェクトを返します。
...me, :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)
# メンバのオブ... -
Symbol
# start _ with?(*prefixes) -> bool (6143.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...ます。
(self.to_s.start_with?と同じです。)
@param prefixes パターンを表す文字列または正規表現 (のリスト)
@see Symbol#end_with?
@see String#start_with?
//emlist[][ruby]{
:hello.start_with?("hell") #=> true
:hello.start_with?(/H/i) #=> t......rue
# returns true if one of the prefixes matches.
:hello.start_with?("heaven", "hell") #=> true
:hello.start_with?("heaven", "paradise") #=> false
//}... -
String
# start _ with?(*prefixes) -> bool (6137.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
"string".start_with?(/\w/) # => true
"string".start_with?(/\d/) # => false
//}
@see String#end_with?
@see String#delete_prefi... -
Symbol
# end _ with?(*suffixes) -> bool (6137.0) -
self の末尾が suffixes のいずれかであるとき true を返します。
...(self.to_s.end_with?と同じです。)
@param suffixes パターンを表す文字列 (のリスト)
@see Symbol#start_with?
@see String#end_with?
//emlist[][ruby]{
:hello.end_with?("ello") #=> true
# returns true if one of the +suffixes+ matches.
:hello.end_with?("heaven", "ell......o") #=> true
:hello.end_with?("heaven", "paradise") #=> false
//}... -
Enumerable
# each _ with _ index(*args) -> Enumerator (6132.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...た場合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args......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... -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (6132.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...た場合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args......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... -
Enumerator
# with _ index(offset = 0) -> Enumerator (6126.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
...r = "xyz"
enum = Enumerator.new {|y| str.each_byte {|b| y << b }}
enum.with_index {|byte, idx| p [byte, idx] }
# => [120, 0]
# [121, 1]
# [122, 2]
require "stringio"
StringIO.new("foo|bar|baz").each("|").with_index(1) {|s, i| p [s, i] }
# => ["foo|", 1]
# ["bar|", 2]......にインデックスを添えてブロックを繰り返します。
インデックスは 0 から始まります。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。... -
Enumerator
# with _ index(offset = 0) {|(*args) , idx| . . . } -> object (6126.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
...r = "xyz"
enum = Enumerator.new {|y| str.each_byte {|b| y << b }}
enum.with_index {|byte, idx| p [byte, idx] }
# => [120, 0]
# [121, 1]
# [122, 2]
require "stringio"
StringIO.new("foo|bar|baz").each("|").with_index(1) {|s, i| p [s, i] }
# => ["foo|", 1]
# ["bar|", 2]......にインデックスを添えてブロックを繰り返します。
インデックスは 0 から始まります。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。... -
Enumerator
# with _ object(obj) -> Enumerator (6126.0) -
繰り返しの各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
...do |x|
y << x
end
end
to_three_with_string = to_three.with_object("foo")
to_three_with_string.each do |x,string|
puts "#{string}: #{x}"
end
# => foo:0
# => foo:1
# => foo:2
//}
@param obj 繰り返しの各要素に添えて渡されるオブジェクト
@see Enumerable#each_with_object... -
Enumerator
# with _ object(obj) {|(*args) , memo _ obj| . . . } -> object (6126.0) -
繰り返しの各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
...do |x|
y << x
end
end
to_three_with_string = to_three.with_object("foo")
to_three_with_string.each do |x,string|
puts "#{string}: #{x}"
end
# => foo:0
# => foo:1
# => foo:2
//}
@param obj 繰り返しの各要素に添えて渡されるオブジェクト
@see Enumerable#each_with_object... -
REXML
:: Element # each _ element _ with _ attribute(key , value = nil , max = 0 , name = nil) {|element| . . . } -> () (6125.0) -
特定の属性を持つすべての子要素を引数としてブロックを呼び出します。
...ch_element_with_attribute('id'){|e| p e }
# >> <b id='1'/>
# >> <c id='2'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1'){|e| p e }
# >> <b id='1'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1', 1){|e| p e }
# >> <b id='1'/>
doc.root.each_element_with_attribute(...