1799件ヒット
[101-200件を表示]
(0.117秒)
ライブラリ
- ビルトイン (640)
- benchmark (12)
-
cgi
/ core (60) - delegate (12)
- fiber (8)
- fiddle (36)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) -
minitest
/ mock (1) -
minitest
/ spec (1) -
minitest
/ unit (3) -
net
/ ftp (72) -
net
/ smtp (24) - openssl (24)
- optparse (120)
- pathname (168)
- rake (156)
- ripper (24)
-
rubygems
/ command (24) -
rubygems
/ user _ interaction (108) - set (18)
- un (12)
- win32ole (120)
- zlib (12)
クラス
- BasicObject (48)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- Class (24)
- Complex (12)
- Data (3)
- Date (12)
- DateTime (12)
- Delegator (12)
- Enumerator (108)
-
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (72) - Exception (12)
- Fiber (12)
-
Fiddle
:: Closure (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Function (12) -
Gem
:: Command (24) -
Gem
:: StreamUI (12) - Method (66)
-
MiniTest
:: Mock (1) -
MiniTest
:: Unit (2) - Module (36)
-
Net
:: FTP (72) -
Net
:: SMTP (24) - NoMethodError (12)
- Object (121)
- OpenStruct (12)
- OptionParser (96)
-
OptionParser
:: ParseError (24) - Pathname (168)
-
Rake
:: Task (36) - Range (12)
- Rational (12)
- Regexp (12)
- Ripper (24)
-
RubyVM
:: InstructionSequence (12) - String (12)
- Struct (12)
- Symbol (12)
- Time (12)
- UnboundMethod (12)
- WIN32OLE (84)
-
WIN32OLE
_ EVENT (36) -
Zlib
:: GzipWriter (12)
モジュール
-
CGI
:: QueryExtension (48) -
CGI
:: QueryExtension :: Value (12) - Enumerable (115)
- FileUtils (24)
-
Gem
:: UserInteraction (96) - Kernel (72)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (24) -
Rake
:: TaskManager (36)
キーワード
- % (12)
- === (8)
- [] (24)
-
_ _ send _ _ (24) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ extra _ args (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) - allocate (12)
- ask (12)
-
ask
_ yes _ no (12) -
assert
_ raises (1) -
bind
_ call (12) - binread (12)
- binwrite (12)
- call (48)
-
choose
_ from _ list (12) -
class
_ exec (12) -
create
_ rule (12) - curry (22)
-
define
_ task (12) - dir (24)
- each (62)
-
each
_ line (24) -
each
_ with _ index (24) -
each
_ with _ object (24) - entries (12)
-
enum
_ for (48) - execute (12)
- expect (1)
- file (12)
-
file
_ create (12) - fnmatch (12)
- fnmatch? (12)
- force (12)
- format (12)
- handler= (12)
-
has
_ key? (12) - include? (12)
- initialize (12)
-
instance
_ exec (12) - invoke (24)
- join (12)
- key? (12)
- keys (12)
- list (24)
- ls (24)
-
method
_ missing (36) - mkdir (12)
- mkmf (12)
-
module
_ exec (12) - multitask (12)
-
must
_ raise (1) - new (12)
-
next
_ values (12) -
on
_ event (12) -
on
_ event _ with _ outargs (12) - open (24)
- order (48)
- parse (24)
- permute (24)
- print (12)
- printf (24)
-
process
_ args (1) -
progress
_ reporter (12) -
public
_ send (24) - read (12)
- readlines (12)
- ready (12)
- recover (12)
-
resolve
_ args (12) -
respond
_ to _ missing? (12) - ruby (12)
-
ruby2
_ keywords (12) - rule (12)
- run (1)
-
safe
_ ln (12) - say (12)
- send (24)
-
set
_ arg _ names (12) - setproperty (24)
- sysopen (12)
- task (12)
-
terminate
_ interaction (12) -
to
_ a (24) -
to
_ enum (48) -
to
_ h (19) -
to
_ json (144) -
to
_ set (24) - transfer (12)
- warn (12)
- warning (12)
- with (3)
-
with
_ index (36) -
with
_ object (24)
検索結果
先頭5件
- Rake
:: TaskManager # resolve _ args(args) -> Array - Gem
:: StreamUI # progress _ reporter(*args) -> SilentProgressReporter | SimpleProgressReporter | VerboseProgressReporter - Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator - Enumerator
:: Lazy # to _ enum(method = :each , *args) {|*args| block} -> Enumerator :: Lazy - Object
# to _ enum(method = :each , *args) -> Enumerator
-
Rake
:: TaskManager # resolve _ args(args) -> Array (9209.0) -
タスクやルールに与えられたパラメータを解釈します。
...タスクやルールに与えられたパラメータを解釈します。
@param args パラメータを指定します。
@return [task_name, arg_name_list, prerequisites] を返します。... -
Gem
:: StreamUI # progress _ reporter(*args) -> SilentProgressReporter | SimpleProgressReporter | VerboseProgressReporter (6508.0) -
処理の進捗を報告するためのオブジェクトを返します。
...ます。
返されるオブジェクトの種類は現在の設定によります。
@param args 返値となるオブジェクトを初期化するための引数です。
@see Gem::StreamUI::SilentProgressReporter, Gem::StreamUI::SimpleProgressReporter, Gem::StreamUI::VerboseProgressReporter... -
Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator (6435.0) -
Enumerator.new(self, method, *args) を返します。
...Enumerator.new(self, method, *args) を返します。
ブロックを指定した場合は Enumerator#size がブロックの評価結果を返
します。ブロックパラメータは引数 args です。
@param method メソッド名の文字列かシンボルです。
@param args 呼び出......渡される引数です。
//emlist[][ruby]{
str = "xyz"
enum = str.enum_for(:each_byte)
p(a = enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# 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__ はここでは :repeat
return to_enum(__method__, n) do
# size メソッドが nil でなければ size * n を返す。
sz = size... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (6407.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......うに、Lazy#to_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0......n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで、repeat の返り... -
Object
# to _ enum(method = :each , *args) -> Enumerator (6335.0) -
Enumerator.new(self, method, *args) を返します。
...Enumerator.new(self, method, *args) を返します。
ブロックを指定した場合は Enumerator#size がブロックの評価結果を返
します。ブロックパラメータは引数 args です。
@param method メソッド名の文字列かシンボルです。
@param args 呼び出......渡される引数です。
//emlist[][ruby]{
str = "xyz"
enum = str.enum_for(:each_byte)
p(a = enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# 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__ はここでは :repeat
return to_enum(__method__, n) do
# size メソッドが nil でなければ size * n を返す。
sz = size... -
Kernel
# task(*args) { . . . } -> Rake :: Task (6308.0) -
Rake タスクを定義します。
...Rake タスクを定義します。
@param args タスク名と依存タスクを指定します。
例:
task :clobber => [:clean] do
rm_rf "html"
end
@see Rake::Task.define_task... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) -> Enumerator :: Lazy (6307.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......うに、Lazy#to_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0......n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで、repeat の返り... -
Kernel
# multitask(args) { . . . } -> Rake :: MultiTask (6302.0) -
事前タスクを並列実行するタスクを定義します。
...事前タスクを並列実行するタスクを定義します。
与えられた事前タスクを実行する順序は不定です。
例:
multitask :deploy => [:deploy_gem, :deploy_rdoc]... -
OpenSSL
:: Buffering # print(*args) -> nil (6230.0) -
args を順に出力します。
...args を順に出力します。
args の各要素を to_s で文字列に変換して
出力します。
IO#print とほぼ同様ですが、引数を省略した場合に $_ を出力する
機能はありません。
@param args 出力するオブジェクト...