1547件ヒット
[1-100件を表示]
(0.102秒)
ライブラリ
- ビルトイン (619)
- benchmark (11)
-
cgi
/ core (66) - csv (11)
- erb (22)
- fiddle (33)
- getoptlong (11)
-
json
/ add / ostruct (11) -
json
/ add / struct (11) -
minitest
/ spec (1) -
minitest
/ unit (3) - mkmf (33)
- openssl (22)
- optparse (220)
- pathname (11)
- rake (165)
-
rdoc
/ rdoc (11) - resolv (11)
-
rexml
/ document (33) -
rexml
/ sax2listener (11) -
rubygems
/ command (22) -
rubygems
/ command _ manager (11) -
rubygems
/ commands / build _ command (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ config _ file (11) -
rubygems
/ doc _ manager (11) -
rubygems
/ gem _ runner (11) -
rubygems
/ user _ interaction (99) - set (22)
- win32ole (22)
クラス
-
ARGF
. class (174) -
Benchmark
:: Tms (11) -
CSV
:: Row (11) - ERB (22)
- Enumerator (66)
-
Enumerator
:: Chain (12) -
Enumerator
:: Lazy (60) - Fiber (11)
-
Fiddle
:: Closure (11) -
Fiddle
:: Closure :: BlockCaller (11) -
Fiddle
:: Function (11) -
Gem
:: Command (22) -
Gem
:: CommandManager (11) -
Gem
:: Commands :: BuildCommand (11) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: ConfigFile (11) -
Gem
:: DocManager (11) -
Gem
:: GemRunner (11) -
Gem
:: StreamUI (11) - GetoptLong (11)
- Method (11)
-
MiniTest
:: Unit (2) - Module (22)
- Numeric (33)
- Object (89)
- OpenStruct (11)
- OptionParser (132)
- Pathname (11)
-
RDoc
:: RDoc (11) -
REXML
:: Attribute (11) -
REXML
:: Instruction (22) -
Rake
:: Task (11) -
Rake
:: TaskArguments (99) -
Resolv
:: DNS :: Resource :: IN :: SRV (11) -
RubyVM
:: InstructionSequence (11) - String (27)
- Struct (11)
- Thread (22)
- UnboundMethod (10)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ TYPE (11)
モジュール
-
CGI
:: QueryExtension (55) -
CGI
:: QueryExtension :: Value (11) - Enumerable (94)
- FileUtils (22)
-
Gem
:: UserInteraction (88) - Kernel (55)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (22) -
OptionParser
:: Arguable (88) -
REXML
:: SAX2Listener (11) -
Rake
:: TaskManager (11)
キーワード
- % (11)
- [] (22)
-
_ dump (11) -
add
_ trace _ func (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) - angle (11)
-
arg
_ config (11) - args (11)
- arguments (33)
- ask (11)
-
ask
_ yes _ no (11) -
assert
_ raises (1) -
bind
_ call (10) - bytes (7)
- call (22)
- chars (7)
-
choose
_ from _ list (11) -
class
_ exec (11) - codepoints (7)
- concat (8)
-
create
_ body (11) -
create
_ makefile (11) -
create
_ rule (11) -
def
_ class (11) -
def
_ module (11) -
default
_ argv (11) -
default
_ argv= (11) -
default
_ event _ sources (11) -
dir
_ config (11) - document (11)
- each (89)
-
each
_ byte (11) -
each
_ char (11) -
each
_ codepoint (11) -
each
_ line (33) -
each
_ with _ index (22) -
each
_ with _ object (11) - entries (11)
-
enum
_ for (44) - execute (11)
- force (11)
- format (11)
-
get
_ one _ optional _ argument (11) - getopts (11)
-
handle
_ arguments (11) -
has
_ key? (11) - include? (11)
- inspect (11)
- key? (11)
- keys (11)
- lineno= (11)
- lines (21)
- lookup (11)
-
marshal
_ dump (11) -
module
_ exec (11) - multitask (11)
-
must
_ raise (1) - names (11)
- namespace (11)
-
new
_ scope (11) -
on
_ event _ with _ outargs (11) -
on
_ head (11) -
on
_ tail (11) - order! (44)
- owner (11)
- parse (22)
- parse! (22)
- permute (22)
- permute! (22)
- phase (11)
- prepend (8)
- print (11)
- printf (11)
-
process
_ args (1) -
processing
_ instruction (11) -
progress
_ reporter (11) -
public
_ send (22) - push (11)
- putc (11)
- puts (11)
-
read
_ nonblock (11) - readpartial (11)
- resume (11)
- ruby (11)
- rule (11)
- run (23)
-
run
_ rdoc (11) -
safe
_ ln (11) - say (11)
-
set
_ trace _ func (11) - target (22)
- target= (11)
-
terminate
_ interaction (11) -
to
_ a (22) -
to
_ enum (44) -
to
_ h (17) -
to
_ hash (11) -
to
_ json (22) -
to
_ s (11) -
to
_ set (22) -
with
_ defaults (11) -
with
_ index (16) -
with
_ object (11)
検索結果
先頭5件
-
Numeric
# arg -> 0 | Math :: PI (18120.0) -
自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。
...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。
//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#arg... -
Gem
:: ConfigFile # handle _ arguments(arg _ list) (12308.0) -
コマンドに渡された引数を処理します。
...コマンドに渡された引数を処理します。
@param arg_list コマンドに渡された引数の配列を指定します。... -
OptionParser
# default _ argv=(argv) (12301.0) -
自身がデフォルトでパースする引数を文字列の配列で指定します。
...@param argv デフォルトでパースしたい文字列の配列を指定します。
//emlist[例][ruby]{
require "optparse"
config = {}
opts = OptionParser.new
opts.on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }
# パラメーター指定なしで実行
opts.default_argv # => []
o......pts.parse!
p config # => {}
opts.default_argv = ["--require", "lib1"] # => ["--require", "lib"]
opts.default_argv # => ["--require", "param1"]
opts.parse!
p config # => {:lib=>"lib1"}
//}... -
WIN32OLE
_ EVENT # on _ event _ with _ outargs(event = nil) {|*args| . . . } -> () (12301.0) -
イベント通知を受けて結果を呼び出し元へ返すブロックを登録します。
...。イベント名は大文
字小文字を区別します。省略時にはすべてのイベントが対象となります。
@param args サーバがイベント通知時に指定した引数の配列です。
eventパラメータを省略した場合、第1要素には......untimeError WIN32OLE_EVENT#unadviseによってイベン
トソースと切断済みです。
ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
ev.on_event('BeforeNavigate2') do |*args|
args[6] = true unless arg......s[4] # Cancel = true unless PostData
end
当メソッドはイベント名の大文字小文字を区別するほか、イベント名の存在確
認を行いません。このため、誤ったイベント名を記述してもエラーとはならず、
単にイベントを受け取れなく... -
Gem
:: Command # arguments -> String (12201.0) -
このメソッドはサブクラスで再定義されます。 コマンドが取る引数の説明を表示するために使用します。
このメソッドはサブクラスで再定義されます。
コマンドが取る引数の説明を表示するために使用します。
サブクラスで実装する場合は、一つの引数につき一行で、左揃えの文字列を返すようにしてください。 -
Gem
:: Command # get _ one _ optional _ argument -> String (12201.0) -
コマンドラインからオプショナルな引数を取得して返します。
...コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。... -
Gem
:: Commands :: BuildCommand # arguments -> String (12201.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Gem
:: Commands :: DependencyCommand # arguments -> String (12201.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
OptionParser
# default _ argv -> [String] (12201.0) -
自身がデフォルトでパースする引数を文字列の配列で返します。
...の配列で返します。
@param argv デフォルトでパースする文字列の配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new
# --hoo param1 --bar param2 をパラメーターに指定して実行
opts.default_argv # => ["--foo", "param1", "--bar",... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (9401.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......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 の返り値は
# もとが Enumerator のときは Enumerator...