1602件ヒット
[1-100件を表示]
(0.067秒)
別のキーワード
ライブラリ
- ビルトイン (904)
- csv (12)
- erb (36)
- fiber (8)
- fiddle (12)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - mkmf (24)
- optparse (264)
- pathname (60)
- rake (72)
-
rexml
/ document (12) - ripper (24)
- set (18)
- win32ole (36)
クラス
-
ARGF
. class (216) - BasicObject (48)
- BigDecimal (12)
-
CSV
:: Row (12) - Class (12)
- Complex (48)
- Data (3)
- Date (12)
- DateTime (12)
- ERB (36)
- Enumerator (60)
-
Enumerator
:: Lazy (6) - Exception (12)
- Fiber (24)
-
Fiddle
:: Function (12) - Hash (24)
- IO (24)
- Method (56)
- Module (24)
- Numeric (36)
- Object (144)
- OptionParser (204)
- Pathname (60)
- Proc (48)
-
REXML
:: Attribute (12) -
Rake
:: TaskArguments (36) - Range (12)
- Rational (12)
- Regexp (12)
- Ripper (24)
- String (30)
- Struct (12)
- Thread (24)
- Time (12)
- UnboundMethod (12)
- WIN32OLE (12)
-
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (103)
- FileUtils (12)
- Kernel (24)
-
OptionParser
:: Arguable (60) -
Rake
:: TaskManager (24)
キーワード
- % (12)
- << (12)
- === (32)
- [] (48)
-
_ _ send _ _ (24) -
_ dump (12) -
add
_ trace _ func (12) - angle (24)
-
arg
_ config (12) -
bind
_ call (12) - binmode (12)
- binread (12)
- call (48)
-
class
_ exec (12) - close (12)
- closed? (12)
- concat (9)
-
create
_ makefile (12) -
create
_ rule (12) -
def
_ class (12) -
def
_ module (12) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) -
define
_ task (12) - each (48)
-
each
_ char (24) -
each
_ line (24) -
each
_ with _ index (24) -
each
_ with _ object (12) - entries (12)
-
enum
_ for (24) - eof (12)
- eof? (12)
- fcntl (12)
- fnmatch (12)
- getbyte (12)
- getc (12)
- getopts (24)
- gets (36)
- initialize (12)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (6)
-
instance
_ exec (12) -
internal
_ encoding (12) - invkind (12)
- join (12)
-
marshal
_ dump (12) -
method
_ missing (12) -
module
_ exec (12) - namespace (12)
- new (12)
-
new
_ scope (12) -
on
_ head (12) -
on
_ tail (12) - order (48)
- order! (48)
- parse (24)
- parse! (24)
- permute (24)
- permute! (24)
- phase (24)
- prepend (9)
- print (12)
-
public
_ send (24) - read (12)
- readbyte (12)
- readchar (12)
- resume (12)
- send (24)
-
set
_ trace _ func (12) - setproperty (12)
- shift (12)
- src (12)
-
to
_ a (12) -
to
_ enum (24) -
to
_ h (19) -
to
_ json (120) -
to
_ s (6) -
to
_ set (24) - transfer (12)
- warn (12)
- warning (12)
- with (3)
-
with
_ defaults (12) -
with
_ index (6) -
with
_ object (12) - yield (12)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (18242.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Complex
# arg -> Float (15174.0) -
自身の偏角を[-π,π]の範囲で返します。
...ます。
//emlist[例][ruby]{
Complex.polar(3, Math::PI/2).arg # => 1.5707963267948966
//}
非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-0.0 では値が変わります。
//emlist[例][ruby]{
Complex(-1, 0).arg #=> 3.1415......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 (15132.0) -
自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。
...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。
//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#arg... -
OptionParser
# default _ argv=(argv) (6213.0) -
自身がデフォルトでパースする引数を文字列の配列で指定します。
...す。
@param argv デフォルトでパースしたい文字列の配列を指定します。
//emlist[例][ruby]{
require "optparse"
config = {}
opts = OptionParser.new
opts.on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }
# パラメーター指定なしで実行
opts.default_argv # =......> []
opts.parse!
p config # => {}
opts.default_argv = ["--require", "lib1"] # => ["--require", "lib"]
opts.default_argv # => ["--require", "param1"]
opts.parse!
p config # => {:lib=>"lib1"}
//}... -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (6144.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" です。... -
OptionParser
# default _ argv -> [String] (6113.0) -
自身がデフォルトでパースする引数を文字列の配列で返します。
...列の配列で返します。
@param argv デフォルトでパースする文字列の配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new
# --hoo param1 --bar param2 をパラメーターに指定して実行
opts.default_argv # => ["--foo", "param1", "--ba... -
Rake
:: TaskArguments # new _ scope(names) -> Rake :: TaskArguments (3113.0) -
与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。
...askArguments を作成します。
@param names パラメータ名のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
new_argum......ents = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end
//}... -
ARGF
. class # gets(limit , chomp: false) -> String | nil (3049.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に
は nil を返します。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切
りなしとみなします。空文字列 "" を指定する......フモード)。
@param limit 最大の読み込みバイト数
@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets......$ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby... -
ARGF
. class # gets(rs = $ / , chomp: false) -> String | nil (3049.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に
は nil を返します。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切
りなしとみなします。空文字列 "" を指定する......フモード)。
@param limit 最大の読み込みバイト数
@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets......$ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby...