ライブラリ
- ビルトイン (967)
- etc (12)
- forwardable (24)
- json (72)
-
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)
- rake (24)
-
rdoc
/ markup (12) - resolv (36)
-
rexml
/ document (24) -
webrick
/ httputils (60) - win32ole (12)
クラス
-
ARGF
. class (240) - Array (24)
- BigDecimal (12)
- Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
-
Etc
:: Passwd (12) - Exception (12)
- FalseClass (24)
- Method (36)
- Module (408)
- NilClass (19)
- Object (132)
- OptionParser (144)
-
RDoc
:: Markup (12) -
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (12)
-
Resolv
:: DNS (36) - String (12)
- Struct (12)
- Thread (12)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TrueClass (24)
- UnboundMethod (12)
-
WEBrick
:: HTTPUtils :: FormData (60) -
WIN32OLE
_ TYPE (12)
モジュール
キーワード
- === (12)
- =~ (7)
- [] (12)
-
_ dump (12) -
absolute
_ path (12) -
add
_ special (12) - arity (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoload (12)
- backtrace (12)
-
base
_ label (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - clone (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delegate (12)
- dup (12)
-
each
_ resource (12) - filename (24)
- filename= (12)
- getc (12)
- getresource (12)
- getresources (12)
- gets (36)
-
inplace
_ mode (12) - inspect (84)
-
instance
_ delegate (12) -
instance
_ method (12) -
json
_ creatable? (12) -
method
_ defined? (12) - name (24)
- name= (12)
-
ole
_ type (12) - on (144)
- path (12)
- pathmap (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) - putc (12)
-
rake
_ extension (12) - read (12)
-
read
_ nonblock (12) - readchar (12)
- readline (36)
- readpartial (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ method (12) -
set
_ encoding (36) -
singleton
_ class (12) -
singleton
_ method (12) -
source
_ location (12) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ s (108) -
to
_ str (12) - uclass (12)
-
undef
_ method (12) - value (12)
検索結果
先頭5件
-
Module
# private _ class _ method(*name) -> self (6133.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...e 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
module Foo
def self.foo; end
end
Foo.singleton_class.private_method_defined?(:foo) # => false
Foo.private_class_method(:foo) #......=> Foo
Foo.singleton_class.private_method_defined?(:foo) # => true
//}... -
Module
# private _ class _ method(names) -> self (6133.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...e 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
module Foo
def self.foo; end
end
Foo.singleton_class.private_method_defined?(:foo) # => false
Foo.private_class_method(:foo) #......=> Foo
Foo.singleton_class.private_method_defined?(:foo) # => true
//}... -
Module
# remove _ class _ variable(name) -> object (6126.0) -
引数で指定したクラス変数を取り除き、そのクラス変数に設定さ れていた値を返します。
...引数で指定したクラス変数を取り除き、そのクラス変数に設定さ
れていた値を返します。
@param name String または Symbol を指定します。
@return 引数で指定されたクラス変数に設定されていた値を返します。
@raise NameError 引数......ジュールやクラスに定義されていない場合に発生します。
//emlist[例][ruby]{
class Foo
@@foo = 1
remove_class_variable(:@@foo) # => 1
p @@foo # => uninitialized class variable @@foo in Foo (NameError)
end
//}
@see Module#remove_const, Object#remove_instance_variabl... -
Module
# class _ variable _ get(name) -> object (6120.0) -
クラス/モジュールに定義されているクラス変数 name の値を返します。
...name の値を返します。
@param name String または Symbol を指定します。
@raise NameError クラス変数 name が定義されていない場合、発生します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
def Fred.foo
class_variable_get(:@@foo)
end
p Fred.foo #=> 99... -
Module
# class _ variable _ set(name , val) -> object (6120.0) -
クラス/モジュールにクラス変数 name を定義して、その値として val をセットします。val を返します。
...値として
val をセットします。val を返します。
@param name String または Symbol を指定します。
//emlist[例][ruby]{
class Fred
@@foo = 99
def foo
@@foo
end
end
def Fred.foo(val)
class_variable_set(:@@foo, val)
end
p Fred.foo(101) # => 101
p Fred.new.foo... -
ARGF
. class # readpartial(maxlen , outbuf = nil) -> String (3130.0) -
IO#readpartialを参照。ARGF.class#read などとは違って複数ファ イルを同時に読み込むことはありません。
...IO#readpartialを参照。ARGF.class#read などとは違って複数ファ
イルを同時に読み込むことはありません。
@param maxlen 読み込む長さの上限を整数で指定します。
@param outbuf 読み込んだデータを格納する String オブジェクトを指定し......ます。
@see IO#readpartial, ARGF.class#read_nonblock... -
ARGF
. class # readchar -> String (3124.0) -
ARGFから 1 文字読み込んで、その文字に対応する String を返します。EOF に 到達した時には EOFErrorを発生します。
...ARGFから 1 文字読み込んで、その文字に対応する String を返します。EOF に
到達した時には EOFErrorを発生します。
@raise EOFError EOFに達した時発生する
$ echo "foo" > file
$ ruby argf.rb file
ARGF.readchar # => "f"
ARGF.readchar # => "o"
A......RGF.readchar # => "o"
ARGF.readchar # => "\n"
ARGF.readchar # => end of file reached (EOFError)
@see ARGF.class#getc... -
ARGF
. class # read _ nonblock(maxlen , outbuf = nil) -> String (3120.0) -
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。 詳しくは IO#read_nonblock を参照してください。
...RGF.class#read などとは違って複数ファイルを同時に読み込むことはありません。
@param maxlen 読み込む長さの上限を整数で指定します。
@param outbuf 読み込んだデータを格納する String オブジェクトを指定します。
@see ARGF.class#rea... -
ARGF
. class # read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil (3120.0) -
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。 詳しくは IO#read_nonblock を参照してください。
...照してください。
ARGF.class#read などとは違って複数ファイルを同時に読み込むことはありません。
@param maxlen 読み込む長さの上限を整数で指定します。
@param outbuf 読み込んだデータを格納する String オブジェクトを指定しま......::EWOULDBLOCK が発生する代わりに
:wait_readable を返すかどうかを指定します。また、false
を指定した場合は既に EOF に達していれば
EOFError の代わりに nil を返します。
@see ARGF.class#readpartial... -
ARGF
. class # gets(limit) -> String | nil (3116.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ 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 # gets(limit , chomp: false) -> String | nil (3116.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ 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...