2639件ヒット
[1-100件を表示]
(0.062秒)
別のキーワード
ライブラリ
- ビルトイン (1876)
- abbrev (12)
- csv (12)
- date (28)
-
fiddle
/ import (12) - json (36)
-
json
/ add / date (12) -
json
/ add / date _ time (12) - logger (36)
- matrix (114)
-
net
/ http (24) - pathname (108)
- rake (36)
-
rexml
/ document (84) -
ripper
/ lexer (16) -
rubygems
/ commands / update _ command (12) -
rubygems
/ requirement (24) -
rubygems
/ specification (120) - socket (12)
- stringio (19)
- tsort (22)
- win32ole (12)
クラス
- Addrinfo (12)
- Array (577)
-
CSV
:: Table (12) - Data (6)
- Date (38)
- DateTime (14)
-
Encoding
:: Converter (60) - Enumerator (132)
-
Enumerator
:: Lazy (386) -
Enumerator
:: Yielder (30) -
File
:: Stat (48) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Requirement (24) -
Gem
:: Specification (120) - Hash (108)
- IO (48)
-
JSON
:: State (24) - Logger (24)
-
Logger
:: Formatter (12) - MatchData (36)
- Matrix (102)
- Module (84)
-
Net
:: HTTP (24) - Numeric (62)
- Object (20)
- Pathname (108)
- Proc (6)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (24) -
REXML
:: Element (36) -
Rake
:: Application (24) - Range (24)
- Rational (12)
-
Ripper
:: Lexer (16) -
RubyVM
:: InstructionSequence (34) - String (30)
- StringIO (19)
- Symbol (9)
- Time (24)
- Vector (12)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (152)
-
Fiddle
:: Importer (12) - FileUtils (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) - TSort (22)
キーワード
- << (12)
- [] (48)
- abbrev (12)
-
absolute
_ path (12) -
add
_ attribute (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ runtime _ dependency (12) - all? (7)
- antisymmetric? (7)
- any? (16)
-
array
_ nl (12) -
array
_ nl= (12) - attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) -
attribute
_ of (12) -
attributes
_ of (12) - basename (12)
- bind (12)
- bsearch (24)
-
bsearch
_ index (10) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (7)
- children (12)
- chunk (24)
- cleanpath (12)
- coerce (24)
- collect (24)
- collect! (12)
- collect2 (12)
-
collect
_ concat (24) - combination (24)
- concat (33)
- convpath (12)
- cycle (24)
-
datetime
_ format (12) -
datetime
_ format= (24) -
deconstruct
_ keys (9) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (12) - directory? (12)
-
do
_ rubygems _ update (12) - drop (12)
-
drop
_ while (24) - each (60)
-
each
_ byte (36) -
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ entry (27) -
each
_ index (12) -
each
_ key (12) -
each
_ strongly _ connected _ component (11) -
each
_ strongly _ connected _ component _ from (11) - eager (6)
- eigensystem (12)
- empty? (9)
-
entrywise
_ product (8) -
enum
_ for (24) -
family
_ addrinfo (12) - fdatasync (12)
-
fetch
_ values (22) - filter (14)
- filter! (7)
-
filter
_ map (6) -
find
_ all (12) -
find
_ index (12) -
flat
_ map (24) - flatten (24)
- flatten! (12)
- force (12)
- ftype (12)
- get (12)
- grep (12)
-
grep
_ v (10) -
group
_ by (12) -
hadamard
_ product (8) - hstack (12)
- imaginary (12)
- index (12)
- isatty (12)
-
keep
_ if (12) - key (12)
- lazy (24)
- lex (8)
- map (24)
- map! (12)
- match? (9)
-
max
_ by (24) - members (3)
-
min
_ by (24) -
minmax
_ by (12) -
named
_ captures (12) - names (12)
-
next
_ values (12) -
next
_ year (12) - none? (7)
- one? (7)
- pack (21)
- parse (8)
- path (24)
-
peek
_ values (12) - permutation (24)
- post (12)
- prefix (12)
-
prev
_ year (12) -
primitive
_ convert (48) - private (36)
-
private
_ instance _ methods (12) - reject (24)
- reject! (12)
-
relative
_ path _ from (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) -
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) -
respond
_ to _ missing? (12) -
reverse
_ each (12) - rindex (12)
- rotate (12)
- rotate! (12)
- ruby (12)
-
ruby2
_ keywords (18) -
rubygems
_ version (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) - saturday? (12)
- select (24)
- select! (12)
- size (24)
-
skew
_ symmetric? (7) -
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) -
sort
_ by (12) -
sort
_ by! (12) - split (12)
- step (62)
- sticky? (12)
- strftime (12)
- symlink? (12)
- take (12)
-
take
_ while (36) -
to
_ a (24) -
to
_ binary (10) -
to
_ enum (24) -
to
_ json (36) -
to
_ proc (6) -
to
_ ruby (12) -
top
_ level _ tasks (12) -
transform
_ keys (8) -
transform
_ keys! (8) - tty? (12)
-
tty
_ output= (12) - unpack (12)
- update (12)
-
values
_ at (36) - vstack (12)
-
with
_ index (36) -
with
_ object (24) - yield (12)
-
yield
_ self (8) - zip (24)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (32101.0) -
self が表す命令シーケンスの絶対パスを返します。
...= 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 = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # path -> String (32101.0) -
self が表す命令シーケンスの相対パスを返します。
...= 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 = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (29219.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッド......inary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("e......xtra_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\x00\x00... -
Gem
:: Commands :: UpdateCommand # do _ rubygems _ update(version) (21301.0) -
RubyGems 自体を更新します。
...
RubyGems 自体を更新します。... -
Array
# at(nth) -> object | nil (18110.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...による
暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [ "a", "b", "c", "d", "e" ]
a[0] #=> "a"
a[1] #=> "b"
a[-1... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (15407.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...irectory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も相......対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パス......が求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Logger
:: Formatter # datetime _ format=(format) (15325.0) -
ログの日時フォーマットをセットします。
...format 日時のフォーマット文字列。Time#strftime で使用するフォーマット文字列と
同じものを使用できます。
//emlist[例][ruby]{
require 'logger'
formatter = Logger::Formatter.new
formatter.datetime_format # => nil
formatter.datetime_format = '%Y-%m......-%d %H:%M:%S' # => "%Y-%m-%d %H:%M:%S"
formatter.datetime_format # => "%Y-%m-%d %H:%M:%S"
//}
@see Time#strftime... -
Array
# repeated _ combination(n) -> Enumerator (15313.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......指定した場合に発生します。
//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... -
Array
# repeated _ permutation(n) -> Enumerator (15313.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に......t[例][ruby]{
a = [1, 2]
a.repeated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).......to_a #=> [[]] # one permutation of length 0
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=...