1591件ヒット
[1501-1591件を表示]
(0.088秒)
ライブラリ
- ビルトイン (745)
-
cgi
/ core (24) - csv (300)
- date (4)
- forwardable (12)
- matrix (12)
- open3 (48)
- prettyprint (1)
- psych (20)
- resolv (12)
-
rexml
/ document (216) -
rubygems
/ commands / which _ command (12) - socket (24)
クラス
- Array (36)
- CSV (252)
-
CSV
:: FieldInfo (24) -
CSV
:: Row (24) - Date (2)
- DateTime (2)
- Enumerator (6)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Lazy (36) -
File
:: Stat (12) - IO (12)
- Matrix (12)
- Object (48)
- PrettyPrint (1)
-
Psych
:: Handler (12) -
REXML
:: Attributes (144) -
REXML
:: Element (12) -
REXML
:: Parent (24) -
REXML
:: XPath (12) - Range (94)
-
Resolv
:: DNS :: Resource :: TXT (12) -
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (24) - Socket (12)
- String (216)
-
Thread
:: Backtrace :: Location (36) - Time (2)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Enumerable (144)
- Forwardable (12)
- Kernel (36)
- Open3 (48)
- Psych (8)
-
REXML
:: Node (12) -
RubyVM
:: AbstractSyntaxTree (3) -
Socket
:: Constants (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 3
. 0 . 0 (5) - Range (12)
- Ruby用語集 (12)
-
SO
_ NREAD (24) - Transitive (12)
- WhichCommand (12)
- [] (84)
- []= (12)
- alias (12)
- attribute (12)
- begin (12)
- binwrite (12)
- caller (36)
-
cgi
/ session (12) -
chunk
_ while (12) -
col
_ sep (12) - convert (24)
-
deconstruct
_ keys (6) - delete (12)
-
delete
_ all (12) - each (24)
-
each
_ attribute (12) -
enum
_ for (24) -
fiddle
/ import (12) - fields (12)
- filter (36)
-
find
_ first _ recursive (12) - first? (1)
-
first
_ column (7) -
first
_ lineno (19) -
first
_ minor (12) - generate (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) - header (12)
-
header
_ convert (24) - index (12)
- inject (36)
-
insert
_ after (12) -
insert
_ before (12) - instance (24)
-
instance
_ delegate (12) - label (12)
- last (24)
- length (12)
- lineno (12)
- min (46)
- namespaces (12)
- new (48)
- of (3)
- open (48)
- parse (24)
- path (12)
-
pipeline
_ rw (24) -
pipeline
_ w (24) - prefixes (12)
- produce (6)
- rdoc (12)
- read (12)
- readlines (12)
- reduce (36)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ load (8) - size (12)
- slice (72)
- slice! (72)
-
slice
_ before (24) -
slice
_ when (12) -
take
_ while (24) -
to
_ a (12) -
to
_ enum (24) - tsort (12)
-
values
_ at (12) - パターンマッチ (12)
- リテラル (12)
- 演算子式 (12)
検索結果
-
ruby 1
. 8 . 2 feature (36.0) -
ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。
...変更
* [api]: 拡張ライブラリ API
* [lib]: ライブラリ
*レベル
* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響......変更)
* [experimental]: 変更の中でも特に実験的なもの(将来再考して欲しいもの?)
* [obsolete]: 廃止された(される予定の)機能
* [platform]: 対応プラットフォームの追加
== 1.8.1 (2003-12-25) -> 1.8.2 (2004-12-25)
* cgi/session においてク......2-09
: File.fnmatch [ruby] [bug]
適切にマッチしないバグを修正しました。
((<ruby-dev:22815>)) ((<ruby-dev:22819>))
=== 2004-02-06
: PrettyPrint#first? [lib] [obsolete]
=== 2004-02-05
: PrettyPrint#seplist [lib] [new]
=== 2004-01-29
: OpenSSL::X509::Name#add_entry [lib] [new... -
rdoc (24.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...ョンです。 JavaDoc と同様に、ソースを解析し、クラス、モ
ジュール、メソッドの定義を抜き出してきます(include,require もです)。そ
してこれらの内容とその直前に書かれたコメントを併合し、ドキュメントを出
力します(現......ください。
=== 概要
インストールすれば、'rdoc' コマンドでドキュメントが生成できます。
(Windows では 'rdoc.bat' です)
$ rdoc [options] [names...]
"rdoc --help" と打てば、最新のオプションに関する情報が得られます。
$ rdoc
こ......t>--output</tt> <i>name [, name]</i>::
specify the name of one or more output files. If multiple
files are present, the first is used as the index.
<tt>--quiet:</tt>:: do not output the names, sizes, byte counts,
index areas, or bit ratios of units as... -
tsort (24.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...ソートと強連結成分に関するモジュールを提供します。
=== Example
//emlist[][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
{1=>[2, 3], 2=>[3], 3=>[], 4=>[]}.tsor......きます。
//emlist[][ruby]{
require 'tsort'
class Make
def initialize
@dep = {}
@dep.default = []
end
def rule(outputs, inputs=[], &block)
triple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end
def build(target)
each......ns|
if ns.length != 1
fs = ns.delete_if {|n| Array === n}
raise TSort::Cyclic.new("cyclic dependencies: #{fs.join ', '}")
end
n = ns.first
if Array === n
outputs, inputs, block = n
inputs_time = inputs.map {|f| File.mtime f}.max
begin... -
NEWS for Ruby 2
. 0 . 0 (18.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 1.9.3 以降の変更
=== 言語仕様の変更
* キーワード引数を追加しました
* %i, %I をシンボルの配列作成のために追加しました。(%w, %W に......コーディングを US-ASCII から UTF-8 に変更しました
* '_' で始まる使用されていない変数は警告しなくなりました
=== 組み込みクラスの更新
* ARGF.class
* 追加: ARGF.class#codepoints, ARGF.class#each_codepoint
IO にある同名のメソ......e instruction sequence
from a method or a block.
* 追加: RubyVM::InstructionSequence#path,
RubyVM::InstructionSequence#absolute_path,
RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#base_label,
RubyVM::InstructionSequence#first_lineno to retrieve in... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting......single rest argument and no keywords.
16166
//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}
pr.call([1])
# 2.7 => [[1], {}]
# 3.0 => [[[1]], {}]
pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now supports leadin......auto_compact have been added to control when compaction runs. Setting `auto_compact=` to `true` will cause compaction to occur during major collections. At the moment, compaction adds significant overhead to major collections, so please test first! 17176
* Hash
* Hash#transform_keys and Has... -
Object
# enum _ for(method = :each , *args) -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...た場合は Enumerator#size がブロックの評価結果を返
します。ブロックパラメータは引数 args です。
@param method メソッド名の文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enu......# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n < 0
unless block_given?
# __method__ は......size * n を返す。
sz = size
sz * n if sz
end
end
each do |*val|
n.times { yield *val }
end
end
end
%i[hello world].repeat(2) { |w| puts w }
# => 'hello', 'hello', 'world', 'world'
enum = (1..14).repeat(3)
# => #<Enumerator: 1..14:repeat(3)>
enum.first(... -
Object
# enum _ for(method = :each , *args) {|*args| . . . } -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...た場合は Enumerator#size がブロックの評価結果を返
します。ブロックパラメータは引数 args です。
@param method メソッド名の文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enu......# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n < 0
unless block_given?
# __method__ は......size * n を返す。
sz = size
sz * n if sz
end
end
each do |*val|
n.times { yield *val }
end
end
end
%i[hello world].repeat(2) { |w| puts w }
# => 'hello', 'hello', 'world', 'world'
enum = (1..14).repeat(3)
# => #<Enumerator: 1..14:repeat(3)>
enum.first(... -
Object
# to _ enum(method = :each , *args) -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...た場合は Enumerator#size がブロックの評価結果を返
します。ブロックパラメータは引数 args です。
@param method メソッド名の文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enu......# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n < 0
unless block_given?
# __method__ は......size * n を返す。
sz = size
sz * n if sz
end
end
each do |*val|
n.times { yield *val }
end
end
end
%i[hello world].repeat(2) { |w| puts w }
# => 'hello', 'hello', 'world', 'world'
enum = (1..14).repeat(3)
# => #<Enumerator: 1..14:repeat(3)>
enum.first(... -
Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...た場合は Enumerator#size がブロックの評価結果を返
します。ブロックパラメータは引数 args です。
@param method メソッド名の文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enu......# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n < 0
unless block_given?
# __method__ は......size * n を返す。
sz = size
sz * n if sz
end
end
each do |*val|
n.times { yield *val }
end
end
end
%i[hello world].repeat(2) { |w| puts w }
# => 'hello', 'hello', 'world', 'world'
enum = (1..14).repeat(3)
# => #<Enumerator: 1..14:repeat(3)>
enum.first(...