4164件ヒット
[1-100件を表示]
(0.088秒)
別のキーワード
ライブラリ
- ビルトイン (2978)
- abbrev (12)
- bigdecimal (24)
-
bigdecimal
/ util (36) - csv (24)
-
fiddle
/ import (12) - json (72)
- logger (24)
- matrix (74)
- mkmf (24)
-
net
/ http (24) - openssl (20)
- optparse (36)
- pathname (217)
- prime (24)
- rake (48)
-
rexml
/ document (336) -
ripper
/ lexer (16) -
rubygems
/ custom _ require (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ requirement (12) -
rubygems
/ specification (48) - stringio (31)
- strscan (36)
- win32ole (12)
クラス
- Array (327)
- BigDecimal (24)
- Binding (7)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (24)
- Data (15)
- Encoding (12)
-
Encoding
:: Converter (48) - Enumerator (132)
-
Enumerator
:: Lazy (178) -
Enumerator
:: Yielder (24) - Exception (12)
-
File
:: Stat (276) - Float (176)
-
Gem
:: GemPathSearcher (12) -
Gem
:: Requirement (12) -
Gem
:: Specification (48) - Hash (219)
- IO (36)
-
JSON
:: State (48) - Logger (24)
- MatchData (94)
- Matrix (62)
-
Matrix
:: LUPDecomposition (12) - Module (144)
-
Net
:: HTTP (24) - Numeric (72)
- Object (87)
-
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: BN (8) - OptionParser (36)
- Pathname (217)
- Prime (24)
- Proc (6)
-
REXML
:: Attribute (36) -
REXML
:: Attributes (144) -
REXML
:: DocType (24) -
REXML
:: Element (108) -
REXML
:: Elements (24) -
Rake
:: FileList (24) -
Rake
:: InvocationChain (24) - Range (18)
- Rational (60)
- Regexp (33)
-
Ripper
:: Lexer (16) -
RubyVM
:: InstructionSequence (34) - String (252)
- StringIO (31)
- StringScanner (36)
- Struct (31)
- Symbol (9)
- Thread (24)
-
Thread
:: Backtrace :: Location (84) - Time (36)
- UnboundMethod (12)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (544)
-
Fiddle
:: Importer (12) - GC (12)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (36)
キーワード
- < (12)
- << (12)
- <= (12)
- == (51)
- === (18)
- > (12)
- >= (12)
- [] (60)
- abbrev (12)
- abs (21)
- absolute? (12)
-
absolute
_ path (24) -
add
_ attribute (24) -
add
_ attributes (12) - all? (15)
- allocate (12)
-
allow
_ nan? (12) - antisymmetric? (7)
- any? (16)
- append (12)
-
ascii
_ compatible? (12) - attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) -
backtrace
_ locations (36) -
base
_ label (12) - basename (12)
- begin (12)
- bind (12)
- binread (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
- bsearch (24)
-
bsearch
_ index (10) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (7)
- chain (7)
- chardev? (12)
-
check
_ circular? (12) - chunk (12)
-
chunk
_ while (12) -
cofactor
_ expansion (12) - collect (12)
-
collect
_ concat (36) - combination (24)
- concat (18)
-
const
_ source _ location (12) - cycle (24)
- deconstruct (3)
- delete (12)
-
delete
_ all (12) -
delete
_ at (12) -
delete
_ attribute (12) - detect (12)
- directory? (12)
-
drop
_ while (12) - each (108)
-
each
_ attribute (12) -
each
_ byte (36) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (12) -
each
_ key (12) -
each
_ pair (12) -
each
_ slice (12) -
each
_ value (12) -
each
_ with _ index (12) -
each
_ with _ object (12) -
egrep
_ cpp (24) - empty? (9)
-
enum
_ for (36) - eql? (39)
- executable? (12)
-
executable
_ real? (12) - fatal? (12)
- feed (12)
-
fetch
_ values (22) - field? (12)
- file? (12)
- filter (21)
- filter! (14)
-
filter
_ map (6) - find (12)
-
find
_ all (12) -
find
_ index (12) - finite? (12)
-
flat
_ map (36) - fnmatch (12)
- force (12)
- formatter (12)
-
garbage
_ collect (12) - get (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - glob (16)
- grep (24)
-
grep
_ v (24) -
group
_ by (12) - grpowned? (12)
- gsub (48)
- gsub! (60)
- index (7)
- inspect (12)
- isatty (12)
-
json
_ creatable? (12) -
keep
_ if (24) - key (12)
- label (12)
-
laplace
_ expansion (12) - lazy (12)
- length (12)
- lex (8)
-
lib
_ dirs _ for (12) - lineno (12)
- magnitude (21)
- map (12)
- match (36)
- match? (39)
- matched? (12)
-
matched
_ size (12) -
max
_ by (24) - member? (12)
- members (3)
-
min
_ by (24) -
minmax
_ by (12) - mountpoint? (12)
-
named
_ captures (12) - namespace (12)
- namespaces (12)
- nan? (12)
- negative? (37)
- next (12)
- none? (15)
-
object
_ nl (12) - on (36)
- one? (15)
- owned? (12)
- pack (21)
- parse (8)
- partition (12)
- path (36)
- peek (12)
- permutation (12)
- pipe? (12)
- positive? (19)
- post (12)
- prefix (12)
- prefixes (12)
-
prepend
_ features (12) -
primitive
_ convert (48) - printf (12)
- private (48)
-
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - readable? (12)
-
readable
_ real? (12) - real? (12)
- realdirpath (12)
- realpath (12)
- regexp (12)
- regular? (12)
- reject (12)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ const (12) -
repeated
_ combination (24) - require (12)
-
required
_ ruby _ version (12) -
required
_ rubygems _ version (12) -
respond
_ to _ missing? (12) -
reverse
_ each (24) - root? (12)
- rotate (12)
- rotate! (12)
-
ruby2
_ keywords (18) -
rubygems
_ version (12) -
satisfied
_ by? (12) - saturday? (12)
- scan (24)
- select (36)
- select! (24)
- setgid? (12)
- setuid? (12)
- size (12)
-
skew
_ symmetric? (7) -
slice
_ after (35) -
slice
_ before (60) -
slice
_ when (23) - socket? (12)
- solve (12)
-
sort
_ by (12) -
sort
_ by! (12) -
source
_ location (19) -
space
_ before (12) - step (62)
- sticky? (12)
- strftime (12)
- sub (60)
- sub! (48)
-
sub
_ ext (12) - subsec (12)
-
take
_ while (36) - text (12)
- then (7)
-
to
_ a (24) -
to
_ binary (10) -
to
_ d (36) -
to
_ enum (36) -
to
_ h (3) -
to
_ json (12) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (24) -
to
_ string (12) -
transform
_ keys (8) -
transform
_ keys! (8) -
transform
_ values (9) -
transform
_ values! (9) - truncate (24)
- tty? (12)
- unpack (12)
- unpack1 (9)
- update (24)
- value (12)
-
values
_ at (60) -
with
_ index (36) -
with
_ object (24) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - xpath (12)
- yield (12)
-
yield
_ self (8) - zero? (24)
- zip (24)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (38301.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... -
RubyVM
:: InstructionSequence # path -> String (35201.0) -
self が表す命令シーケンスの相対パスを返します。
...ます。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello......puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (32337.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッド......to_binary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_bina......ry("extra_data")
# ※表示の都合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\x00\x00\x00\x16\x02\x00\x00\n\x00\x00\x00\x01
# \x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00\x84\x01\x00\x00\x88\x01\x00
# \x00\x02\x02\x00\x00x86_64-darwin15\x00*\x00\x00\x00\x00\x0... -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (21435.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
...この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。... -
Gem
:: Specification # to _ ruby -> String (21435.0) -
自身を再現するための Ruby スクリプトを文字列で返します。
...自身を再現するための Ruby スクリプトを文字列で返します。
省略されている値はデフォルト値が使用されます。... -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (21401.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
...この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。... -
Gem
:: Specification # rubygems _ version -> String (21401.0) -
この Gem パッケージを作成した RubyGems のバージョンを返します。
...この Gem パッケージを作成した RubyGems のバージョンを返します。... -
Array
# repeated _ combination(n) -> Enumerator (18525.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],......3,3]]
a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
# [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
# [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
a.repeated_combination(0).to_a... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (18513.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", "<"]
//}...