6694件ヒット
[1-100件を表示]
(0.095秒)
別のキーワード
ライブラリ
- ビルトイン (5207)
- bigdecimal (24)
- csv (180)
- fiber (8)
-
fiddle
/ import (12) -
io
/ wait (24) -
irb
/ context (24) - logger (12)
- matrix (36)
- mkmf (36)
-
net
/ http (108) - open-uri (12)
- openssl (36)
- optparse (348)
- ostruct (14)
- pathname (61)
- pp (24)
- prime (24)
- rake (12)
-
rake
/ packagetask (48) -
rexml
/ document (204) - set (18)
- socket (48)
- stringio (50)
- strscan (60)
- thread (12)
- timeout (16)
- win32ole (36)
クラス
-
ARGF
. class (48) - Addrinfo (12)
- Array (864)
- BasicObject (36)
- BasicSocket (36)
- BigDecimal (24)
- Binding (11)
- CSV (48)
-
CSV
:: Row (36) -
CSV
:: Table (96) - Data (3)
- Dir (24)
- Enumerator (96)
-
Enumerator
:: Lazy (154) -
Enumerator
:: Yielder (24) - Exception (24)
- FalseClass (12)
- Fiber (12)
-
File
:: Stat (96) - Hash (538)
- IO (110)
-
IRB
:: Context (24) - Integer (24)
- Logger (12)
- MatchData (22)
- Matrix (24)
-
Matrix
:: LUPDecomposition (12) - Module (288)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (48) - NilClass (12)
- Numeric (74)
- Object (138)
-
OpenSSL
:: BN (36) - OpenStruct (14)
- OptionParser (300)
- PP (12)
- Pathname (61)
- Prime (24)
- Proc (50)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (60) -
REXML
:: DocType (24) -
REXML
:: Element (84) -
REXML
:: Elements (24) -
Rake
:: FileTask (12) -
Rake
:: PackageTask (48) - Range (128)
- Regexp (24)
-
RubyVM
:: InstructionSequence (12) - String (681)
- StringIO (50)
- StringScanner (60)
- Struct (67)
- Symbol (33)
- Thread (80)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: Queue (46) -
Thread
:: SizedQueue (36) - Time (12)
- TracePoint (74)
- TrueClass (12)
- UnboundMethod (24)
- WIN32OLE (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (1344)
-
Fiddle
:: Importer (12) - Kernel (52)
-
Net
:: HTTPHeader (12) -
OpenURI
:: Meta (12) -
OptionParser
:: Arguable (48)
キーワード
- < (12)
- << (19)
- <= (12)
- <=> (36)
- == (12)
- > (12)
- >= (12)
- >> (7)
- [] (228)
-
absolute
_ path (24) -
add
_ trace _ func (12) - all? (53)
- any? (62)
-
arg
_ config (12) - assoc (12)
- at (12)
- attribute (12)
-
attribute
_ of (12) - autoclose? (12)
- backtrace (12)
-
backtrace
_ locations (24) -
base
_ label (12) -
base
_ uri (12) - begin (12)
- bind (12)
- binding (12)
- binmode (12)
- binread (12)
- blockdev? (12)
- body (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
-
bsearch
_ index (20) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (38)
- byteslice (36)
-
callee
_ id (12) - casecmp (12)
- casecmp? (18)
- chardev? (12)
- chars (12)
- chunk (12)
-
chunk
_ while (12) -
class
_ eval (24) -
class
_ exec (12) - closed? (10)
- cmp (12)
- codepoints (12)
-
cofactor
_ expansion (12) - collect (36)
-
collect
_ concat (36) - combination (24)
- compact (9)
- compact! (9)
-
connect
_ from (12) - count (48)
- curry (24)
- cycle (48)
- default (24)
-
default
_ event _ sources (12) - delete (60)
-
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (24) - deq (24)
- detect (24)
- dig (30)
-
do
_ not _ reverse _ lookup (12) -
drop
_ while (24) - each (144)
-
each
_ attribute (12) -
each
_ byte (72) -
each
_ char (12) -
each
_ codepoint (12) -
each
_ cons (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ entry (24) -
each
_ grapheme _ cluster (8) -
each
_ key (24) -
each
_ pair (36) -
each
_ slice (24) -
each
_ value (24) -
each
_ with _ index (24) -
each
_ with _ object (24) -
egrep
_ cpp (24) - empty? (9)
- encode (36)
- entity (12)
-
enum
_ for (36) - eof (12)
- eof? (12)
- event (12)
-
extend
_ object (12) - fetch (80)
-
fetch
_ values (22) - field (12)
- filter (49)
- filter! (28)
-
filter
_ map (12) - find (24)
-
find
_ all (24) -
find
_ index (36) - first (36)
-
flat
_ map (36) -
force
_ quotes? (12) - formatter (12)
- get (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ byte (12) -
get
_ text (12) - getbyte (48)
- getc (12)
- getch (12)
- glob (16)
-
grapheme
_ clusters (8) - grep (24)
-
grep
_ v (24) -
group
_ by (24) - gsub (48)
- gsub! (48)
- handler= (12)
- inject (36)
- inspect (24)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ variable _ get (12) -
instruction
_ sequence (7) - invert (12)
-
keep
_ if (48) - lambda? (12)
-
laplace
_ expansion (12) - last (12)
- lazy (12)
- load (12)
-
local
_ address (12) -
local
_ variables (11) - map (36)
- match (36)
- match? (12)
-
matched
_ size (12) - max (130)
-
max
_ by (48) - merge (24)
- merge! (24)
-
method
_ id (12) - min (130)
-
min
_ by (48) - minmax (48)
-
minmax
_ by (24) -
module
_ eval (24) -
module
_ exec (12) -
module
_ function (12) - name (12)
- namespace (12)
-
need
_ tar (12) -
need
_ tar _ bz2 (12) -
need
_ tar _ gz (12) -
need
_ zip (12) - needed? (12)
-
next
_ element (12) - none? (53)
- nonzero? (24)
-
ole
_ query _ interface (12) - on (144)
-
on
_ head (12) -
on
_ tail (12) - one? (53)
- order (48)
- order! (48)
- owner (12)
- pack (21)
- parameters (7)
- partition (24)
- permutation (12)
- permute (24)
- permute! (12)
- pop (36)
- post (12)
- pread (8)
-
pretty
_ print (12) - private (48)
- public (60)
- push (12)
- rassoc (12)
- read (12)
-
read
_ body (24) - readbyte (12)
- readlines (12)
- reduce (36)
- reject (36)
-
remote
_ address (12) -
repeated
_ combination (24) -
respond
_ to? (12) -
return
_ value (12) -
reverse
_ each (48) - rewind (12)
- sample (24)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (12)
- select (84)
- select! (48)
- seplist (12)
-
set
_ backtrace (12) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - setgid? (12)
- setuid? (12)
- shift (48)
- sign (12)
- slice (84)
- slice! (36)
-
slice
_ after (35) -
slice
_ before (60) -
slice
_ when (23) - socket? (12)
- solve (12)
- sort (48)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) -
source
_ location (12) - split (14)
- step (62)
- sticky? (12)
- sub (60)
- sub! (36)
-
sub
_ type (12) - subsec (12)
- sum (54)
- sync (12)
-
take
_ while (48) - tap (12)
- text (12)
- then (14)
- timeout (16)
-
to
_ enum (36) -
to
_ h (59) -
to
_ s (24) -
to
_ set (24) - transfer (12)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - ucmp (12)
- uniq (24)
- unpack (12)
- update (24)
- upto (12)
-
use
_ readline (12) -
use
_ readline? (12) - wait (12)
-
wait
_ readable (12) -
with
_ index (36) -
with
_ object (24) -
world
_ readable? (12) -
world
_ writable? (12) -
write
_ headers? (12) - yield (12)
-
yield
_ self (16) - zip (60)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (32302.0) -
self が表す命令シーケンスの絶対パスを返します。
...ます。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello......puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
FalseClass
# |(other) -> bool (18355.0) -
other が真なら true を, 偽なら false を返します。
...
| は再定義可能な演算子に分類されていますので、通常は false | other の形で使われます。
//emlist[例][ruby]{
p false | true #=> true
p false | false #=> false
p false | nil #=> false
p false | (1 == 1) #=> true
p false | (1 + 1) #=> true
p false.|(tru......e) #=> true
p false.|(false) #=> false
p false.|(nil) #=> false
p false.|(1 == 1) #=> true
p false.|(1 + 1) #=> true
//}... -
TrueClass
# |(other) -> bool (18355.0) -
常に true を返します。
...。
| は再定義可能な演算子に分類されていますので、通常は true | other のように使われます。
//emlist[例][ruby]{
p true | true #=> true
p true | false #=> true
p true | nil #=> true
p true | (1 == 1) #=> true
p true | (1 + 1) #=> true
p true.|(true)......#=> true
p true.|(false) #=> true
p true.|(nil) #=> true
p true.|(1 == 1) #=> true
p true.|(1 + 1) #=> true
//}... -
NilClass
# |(other) -> bool (18337.0) -
other が真なら true を, 偽なら false を返します。
...other が真なら true を, 偽なら false を返します。
@param other 論理和を行なう式です
//emlist[例][ruby]{
nil | true # => true
nil | false # => false
nil | nil # => false
nil | "a" # => true
//}... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9426.0) -
各属性に対しブロックを呼び出します。
...。
個々の属性は REXML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a =......doc.get_elements("/root/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9414.0) -
name という名前の属性を取得します。
...:Attributes#[]
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("a......tt") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9414.0) -
namespace と name で特定される属性を返します。
...列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute_ns("", "att")......# => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
Thread
:: Backtrace :: Location # base _ label -> String (9225.0) -
self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。
...read::Backtrace::Location#label から修飾を取り除いたもので構成
されます。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.base_label
end......# => initialize
# new
# <main>
//}
@see Thread::Backtrace::Location#label... -
Enumerator
# with _ object(obj) {|(*args) , memo _ obj| . . . } -> object (6650.0) -
繰り返しの各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
...の各要素に obj を添えてブロックを繰り返し、obj を返り値として返します。
obj には任意のオブジェクトを渡すことができます。
ブロックが渡されなかった場合は、上で説明した繰り返しを実行し、
最後に obj を返す Enumer......例][ruby]{
# 0,1,2 と呼びだす enumeratorを作る
to_three = Enumerator.new do |y|
3.times 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...