ライブラリ
- ビルトイン (841)
- etc (11)
- forwardable (22)
- json (66)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / time (11) - optparse (132)
- rake (22)
-
rdoc
/ markup (11) - resolv (33)
-
rexml
/ document (22) -
webrick
/ httputils (55) - win32ole (11)
クラス
-
ARGF
. class (220) - Array (22)
- BigDecimal (11)
- Class (11)
- Complex (11)
- Date (11)
- DateTime (11)
-
Etc
:: Passwd (11) - Exception (11)
- FalseClass (22)
- Method (33)
- Module (329)
- NilClass (17)
- Object (121)
- OptionParser (132)
-
RDoc
:: Markup (11) -
REXML
:: CData (22) - Range (11)
- Rational (11)
- Regexp (11)
-
Resolv
:: DNS (33) - String (11)
- Struct (11)
- Thread (11)
-
Thread
:: Backtrace :: Location (44) - Time (11)
- TrueClass (22)
- UnboundMethod (11)
-
WEBrick
:: HTTPUtils :: FormData (55) -
WIN32OLE
_ TYPE (11)
モジュール
キーワード
- === (11)
- =~ (6)
- [] (11)
-
_ dump (11) -
absolute
_ path (11) -
add
_ special (11) - arity (11)
- attr (9)
-
attr
_ accessor (3) -
attr
_ reader (3) -
attr
_ writer (3) - autoload (11)
- backtrace (11)
-
base
_ label (11) -
class
_ variable _ defined? (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) - clone (11)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) -
define
_ method (22) -
define
_ singleton _ method (22) - delegate (11)
- dup (11)
-
each
_ resource (11) - filename (22)
- filename= (11)
- getc (11)
- getresource (11)
- getresources (11)
- gets (33)
-
inplace
_ mode (11) - inspect (77)
-
instance
_ delegate (11) -
instance
_ method (11) -
json
_ creatable? (11) -
method
_ defined? (11) - name (22)
- name= (11)
-
ole
_ type (11) - on (132)
- path (11)
- pathmap (11)
- private (23)
-
private
_ class _ method (15) -
private
_ constant (11) -
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ class _ method (15) -
public
_ constant (11) -
public
_ method (11) -
public
_ method _ defined? (11) - putc (11)
-
rake
_ extension (11) - read (11)
-
read
_ nonblock (11) - readchar (11)
- readline (33)
- readpartial (11)
-
remove
_ class _ variable (11) -
remove
_ const (11) -
remove
_ method (11) -
set
_ encoding (33) -
singleton
_ class (11) -
singleton
_ method (11) -
source
_ location (11) -
to
_ json (154) -
to
_ json _ raw _ object (11) -
to
_ s (99) -
to
_ str (11) - uclass (11)
-
undef
_ method (11) - value (11)
検索結果
先頭5件
-
String
# pathmap(spec = nil) { . . . } -> String (21114.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...ンと置換文字列に使用しないでください。
例:
"src/org/onestepback/proj/A.java".pathmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。... -
Object
# class -> Class (18263.0) -
レシーバのクラスを返します。
...レシーバのクラスを返します。
//emlist[][ruby]{
p "ruby".class #=> String
p 100.class #=> Integer
p ARGV.class #=> Array
p self.class #=> Object
p Class.class #=> Class
p Kernel.class #=> Module
//}
@see Class#superclass,Object#kind_of?,Object#instance_of?... -
Class
# json _ creatable? -> bool (9007.0) -
シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は 真を返します。そうでない場合は、偽を返します。
...json_create というメソッドを実装していなければなりません。
また json_create の第一引数は必要なデータを含むハッシュを期待しています。
//emlist[例][ruby]{
require "json"
String.json_creatable? # => true
Dir.json_creatable? # => false
//}... -
Object
# singleton _ class -> Class (6251.0) -
レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。
...れ NilClass, TrueClass,
FalseClass を返します。
@raise TypeError レシーバが Integer、Float、Symbol の場合に発生します。
//emlist[][ruby]{
Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
String.singleton_class #=> #<Class:String>
nil.singleton_class......#=> NilClass
//}
@see Object#class... -
Etc
:: Passwd # uclass -> String (6202.0) -
ユーザアクセスクラス(文字列)を返します。このメンバはシステム依存です。
ユーザアクセスクラス(文字列)を返します。このメンバはシステム依存です。 -
Module
# public _ class _ method(*name) -> self (6139.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMethodError: private method `foo' called for Foo:Class
F......oo.public_class_method(:foo) # => Foo
Foo.foo # => "foo"
//}... -
Module
# public _ class _ method(names) -> self (6139.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMethodError: private method `foo' called for Foo:Class
F......oo.public_class_method(:foo) # => Foo
Foo.foo # => "foo"
//}... -
Module
# class _ variable _ defined?(name) -> bool (6138.0) -
name で与えられた名前のクラス変数がモジュールに存在する場合 true を 返します。
...す。
@param name Symbol か String を指定します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
Fred.class_variable_defined?(:@@foo) #=> true
Fred.class_variable_defined?(:@@bar) #=> false
Fred.class_variable_defined?('@@foo') #=> true
Fred.class_variable_defined?('@@bar')... -
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
# public _ class _ method(*name) -> self (6132.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...す。
@param name 0 個以上の String または Symbol を指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMethodError: private method `foo' called for Foo:Class
Foo.public_class_method(:foo) # => Foo
Foo.foo # => "... -
Module
# private _ class _ method(*name) -> self (6126.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...ます。
@param name 0 個以上の String または Symbol を指定します。
//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) # => t... -
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...