1147件ヒット
[201-300件を表示]
(0.194秒)
別のキーワード
ライブラリ
- ビルトイン (799)
- json (60)
-
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) - optparse (144)
-
rexml
/ document (24)
クラス
-
ARGF
. class (108) - BigDecimal (12)
- Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
- Exception (12)
- FalseClass (24)
- Method (36)
- Module (384)
- NilClass (19)
- Object (132)
- OptionParser (144)
-
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (12)
- Struct (12)
- Thread (12)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TrueClass (24)
- UnboundMethod (12)
モジュール
キーワード
- === (12)
- =~ (7)
-
_ dump (12) -
absolute
_ path (12) - arity (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoload (12)
- backtrace (12)
-
base
_ label (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) -
define
_ method (24) -
define
_ singleton _ method (24) - filename (12)
- getc (12)
- gets (36)
-
inplace
_ mode (12) - inspect (72)
-
instance
_ method (12) -
json
_ creatable? (12) -
method
_ defined? (12) - name (12)
- on (144)
- path (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - read (12)
- readchar (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ method (12) -
singleton
_ class (12) -
singleton
_ method (12) -
source
_ location (12) -
to
_ json (168) -
to
_ s (96) -
to
_ str (12) -
undef
_ method (12) - value (12)
検索結果
先頭5件
-
ARGF
. class # gets(rs , limit , chomp: false) -> String | nil (9264.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は 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...... test.txt
# $ 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.t......xt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc... -
ARGF
. class # getc -> String | nil (9226.0) -
self から 1 文字読み込んで返します。EOF に到達した時には nil を返します。
...f から 1 文字読み込んで返します。EOF に到達した時には nil を返します。
ARGF はスクリプトに指定した引数(Object::ARGV を参照) をファイル名
とみなして、それらのファイルを連結した 1 つの仮想ファイルを表すオブジェ
クト......foo" > file1
$ echo "bar" > file2
$ ruby argf.rb file1 file2
ARGF.getc # => "f"
ARGF.getc # => "o"
ARGF.getc # => "o"
ARGF.getc # => "\n"
ARGF.getc # => "b"
ARGF.getc # => "a"
ARGF.getc # => "r"
ARGF.getc # => "\n"
ARGF.getc # => nil
@see ARGF.class#getbyte, ARGF.class#gets... -
Thread
:: Backtrace :: Location # absolute _ path -> String (9220.0) -
self が表すフレームの絶対パスを返します。
...list[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end
# => /path/to/foo.rb
# /path/to/foo.rb
# /path/to/foo.rb
//}
@see Thread::Backtrace::Location......#path... -
FalseClass
# inspect -> String (9215.0) -
常に文字列 "false" を返します。
...常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//}... -
FalseClass
# to _ s -> String (9215.0) -
常に文字列 "false" を返します。
...常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//}... -
NilClass
# to _ s -> String (9214.0) -
空文字列 "" を返します。
...空文字列 "" を返します。
//emlist[例][ruby]{
nil.to_s # => ""
//}... -
TrueClass
# inspect -> String (9214.0) -
常に文字列 "true" を返します。
...常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//}... -
TrueClass
# to _ s -> String (9214.0) -
常に文字列 "true" を返します。
...常に文字列 "true" を返します。
//emlist[例][ruby]{
true.to_s # => "true"
//}... -
Thread
# backtrace -> [String] | nil (6320.0) -
スレッドの現在のバックトレースを返します。
...ist[例][ruby]{
class C1
def m1
sleep 5
end
def m2
m1
end
end
th = Thread.new {C1.new.m2; Thread.stop}
th.backtrace
# => [
# [0] "(irb):3:in `sleep'",
# [1] "(irb):3:in `m1'",
# [2] "(irb):6:in `m2'",
# [3] "(irb):10:in `block in irb_binding'"
# ]
th.kill
th.......backtrace # => nil
//}...