2807件ヒット
[1-100件を表示]
(0.128秒)
ライブラリ
- ビルトイン (1740)
- benchmark (12)
-
cgi
/ core (72) - csv (48)
- delegate (12)
- erb (24)
- fiber (8)
- fiddle (36)
- getoptlong (24)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / struct (12) -
minitest
/ mock (1) -
minitest
/ spec (1) -
minitest
/ unit (1) - mkmf (48)
- observer (12)
- openssl (12)
- optparse (72)
- pathname (48)
- rake (144)
-
rdoc
/ rdoc (12) - resolv (12)
-
rexml
/ document (36) -
rexml
/ sax2listener (12) -
rubygems
/ command (72) -
rubygems
/ command _ manager (24) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ doc _ manager (12) -
rubygems
/ user _ interaction (108) - win32ole (72)
- zlib (12)
クラス
-
ARGF
. class (912) - BasicObject (48)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- CSV (24)
-
CSV
:: Row (24) - Class (12)
- Complex (48)
- Delegator (12)
- ERB (24)
- Enumerator (72)
-
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (66) - Exception (12)
- Fiber (24)
-
Fiddle
:: Closure (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Function (12) -
Gem
:: Command (72) -
Gem
:: CommandManager (24) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: DocManager (12) -
Gem
:: StreamUI (12) - GetoptLong (24)
- Hash (24)
- IO (36)
- Method (80)
-
MiniTest
:: Mock (1) -
MiniTest
:: Unit (1) - Module (24)
- NoMethodError (12)
- Numeric (36)
- Object (145)
- OpenStruct (12)
- OptionParser (24)
-
OptionParser
:: ParseError (12) - Pathname (48)
- Proc (48)
-
RDoc
:: Options (12) -
RDoc
:: RDoc (12) -
REXML
:: Attribute (12) -
REXML
:: Instruction (24) -
Rake
:: Task (24) -
Rake
:: TaskArguments (72) - Rational (12)
-
Resolv
:: DNS :: Resource :: IN :: SRV (12) -
RubyVM
:: InstructionSequence (12) - String (21)
- Struct (12)
- Thread (24)
- UnboundMethod (12)
- WIN32OLE (60)
-
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (12)
モジュール
-
CGI
:: QueryExtension (60) -
CGI
:: QueryExtension :: Value (12) - Enumerable (79)
-
Gem
:: UserInteraction (96) - Kernel (72)
- Observable (12)
-
OpenSSL
:: SSL :: SocketForwarder (12) -
OptionParser
:: Arguable (36) -
REXML
:: SAX2Listener (12) -
Rake
:: TaskManager (24)
キーワード
- % (12)
- << (12)
- === (32)
- [] (60)
-
_ _ send _ _ (24) -
_ dump (12) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ extra _ args (12) -
add
_ trace _ func (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) - angle (24)
-
arg
_ config (12) -
arg
_ description (12) - args (36)
- arguments (36)
- argv (12)
- ask (12)
-
ask
_ yes _ no (12) -
bind
_ call (12) - binmode (12)
- binmode? (12)
- bytes (14)
- call (60)
- chars (14)
-
choose
_ from _ list (12) -
class
_ exec (12) - close (12)
- closed? (12)
- codepoints (14)
- concat (9)
- convert (12)
-
create
_ body (12) -
create
_ makefile (12) -
create
_ rule (12) -
def
_ class (12) -
default
_ event _ sources (12) -
define
_ task (12) -
dir
_ config (12) - document (12)
- each (134)
-
each
_ byte (24) -
each
_ char (24) -
each
_ codepoint (24) -
each
_ line (72) -
each
_ option (12) -
each
_ with _ index (24) -
each
_ with _ object (12) - entries (12)
-
enum
_ for (48) - eof (12)
- eof? (12)
- execute (12)
- expect (1)
-
external
_ encoding (12) - fcntl (36)
- file (12)
-
file
_ create (12) - filename (12)
- fileno (12)
- fnmatch (12)
- fnmatch? (12)
- force (12)
- format (12)
-
get
_ one _ optional _ argument (12) - getbyte (12)
- getc (12)
- gets (36)
-
handle
_ arguments (12) - handles? (12)
-
has
_ key? (12) - include? (12)
- initialize (12)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (30)
-
instance
_ exec (12) -
internal
_ encoding (12) - invoke (24)
- ioctl (24)
- key? (12)
- keys (12)
- lineno (12)
- lineno= (12)
- lines (42)
- lookup (12)
-
marshal
_ dump (12) -
method
_ missing (36) - modified? (12)
-
module
_ exec (12) -
must
_ raise (1) - namespace (12)
- new (12)
-
new
_ scope (12) -
notify
_ observers (12) -
on
_ head (12) -
on
_ tail (12) - owner (12)
- parse (12)
- path (12)
- phase (24)
- pos (12)
- pos= (12)
- print (12)
- printf (36)
-
process
_ args (13) -
processing
_ instruction (12) -
progress
_ reporter (12) -
public
_ send (24) - push (12)
- putc (12)
- puts (12)
- read (12)
-
read
_ nonblock (12) - readbyte (12)
- readchar (12)
- readline (36)
- readlines (36)
- readpartial (12)
- receiver (12)
- recover (12)
- resume (12)
- rewind (12)
- rule (12)
- run (12)
-
run
_ rdoc (12) - say (12)
- seek (12)
- send (24)
-
set
_ encoding (36) -
set
_ trace _ func (12) - shift (12)
- skip (12)
- src (12)
- target (24)
- target= (12)
- tell (12)
-
terminate
_ interaction (12) -
to
_ a (60) -
to
_ enum (48) -
to
_ h (19) -
to
_ i (12) -
to
_ io (12) -
to
_ json (60) -
to
_ s (30) -
to
_ write _ io (12) - transfer (12)
-
with
_ index (18) -
with
_ object (12) - write (12)
- yield (12)
検索結果
先頭5件
-
Complex
# arg -> Float (18156.0) -
自身の偏角を[-π,π]の範囲で返します。
...
Complex.polar(3, Math::PI/2).arg # => 1.5707963267948966
//}
非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-0.0 では値が変わります。
//emlist[例][ruby]{
Complex(-1, 0).arg #=> 3.141592653589793
Complex(-1, -0).arg......#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793
Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}
@see Numeric#arg... -
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... -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (12320.0) -
configure オプション --config の値を返します。
...
configure オプション --config の値を返します。
@param config オプションを文字列で指定します。
@param default 引数 config で指定したオプションのデフォルト値を指定します。
@return オプションが指定されてた場合は true を、指定......ンに引数が指定されていた場合は指定した文字列を返します。
例えば extconf.rb で arg_config メソッドを使う場合、
$ ruby extconf.rb --foo --bar=baz
と実行したとき、arg_config("--foo") の値は true、
arg_config("--bar") の値は "baz" です。... -
Gem
:: CommandManager # process _ args(args) -> () (12301.0) -
引数 args を処理して gem コマンドを実行するために必要な処理を行います。
...引数 args を処理して gem コマンドを実行するために必要な処理を行います。
@param args コマンドラインから受け取った引数を指定します。... -
MiniTest
:: Unit # process _ args(args = []) -> Hash (12301.0) -
optparse を使ってコマンドライン引数を解析した結果を返します。
...optparse を使ってコマンドライン引数を解析した結果を返します。
@param args コマンドライン引数を指定します。
@see optparse... -
ARGF
. class # each _ char -> Enumerator (12208.0) -
レシーバに含まれる文字を一文字ずつブロックに渡して評価します。
...に含まれる文字を一文字ずつブロックに渡して評価します。
このメソッドはスクリプトに指定した引数(Object::ARGV を参照) をファ
イル名とみなして、それらのファイルを連結した 1 つの仮想ファイルを表すオ
ブジェクトで......は
ARGF.class#filename を使用します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを生成し
て返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_char......# => #<Enumerator: ARGF:each_char>
ARGF.each_char{|e|p e}
# => "l"
# "i"
# "n"
# "e"
# "1"
# "\n"
# "l"
# "i"
# "n"
# "e"
# "2"
# "\n"
@see IO#each_char... -
ARGF
. class # each _ char { |c| . . . } -> self (12208.0) -
レシーバに含まれる文字を一文字ずつブロックに渡して評価します。
...に含まれる文字を一文字ずつブロックに渡して評価します。
このメソッドはスクリプトに指定した引数(Object::ARGV を参照) をファ
イル名とみなして、それらのファイルを連結した 1 つの仮想ファイルを表すオ
ブジェクトで......は
ARGF.class#filename を使用します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを生成し
て返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_char......# => #<Enumerator: ARGF:each_char>
ARGF.each_char{|e|p e}
# => "l"
# "i"
# "n"
# "e"
# "1"
# "\n"
# "l"
# "i"
# "n"
# "e"
# "2"
# "\n"
@see IO#each_char... -
Rake
:: Task # arg _ description (12202.0) -
-
ARGF
. class # argv -> Array (12107.0) -
Object::ARGV を返します。
...Object::ARGV を返します。
ARGF が ARGV をどう扱うかについては ARGF を参照してください。
例:
$ ruby argf.rb -v glark.txt
ARGF.argv #=> ["-v", "glark.txt"]... -
ARGF
. class # close -> self (12101.0) -
現在開いている処理対象のファイルをクローズします。開くファイルが残って いる場合は次のファイルをオープンします。 ただし、標準入力はクローズされません。
...いる場合は次のファイルをオープンします。
ただし、標準入力はクローズされません。
$ echo "foo" > foo
$ echo "bar" > bar
$ ruby argf.rb foo bar
ARGF.filename # => "foo"
ARGF.close
ARGF.filename # => "bar"
ARGF.close
@see ARGF.class#closed?...