1300件ヒット
[1-100件を表示]
(0.087秒)
ライブラリ
- ビルトイン (874)
- e2mmap (6)
- erb (24)
- json (24)
-
json
/ add / struct (12) - optparse (144)
- pp (12)
- rake (12)
-
rdoc
/ context (36) -
rdoc
/ markup (12) -
rdoc
/ top _ level (24) - resolv (36)
-
webrick
/ httputils (48) - win32ole (36)
クラス
-
ARGF
. class (24) - BasicObject (96)
- ERB (24)
-
JSON
:: Parser (12) - Method (24)
- Module (468)
- NameError (10)
- Object (120)
- OptionParser (144)
- PP (12)
-
RDoc
:: Context (36) -
RDoc
:: Markup (12) -
RDoc
:: TopLevel (24) -
Resolv
:: DNS (36) - Struct (12)
- TracePoint (24)
- UnboundMethod (12)
-
WEBrick
:: HTTPUtils :: FormData (48) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ TYPELIB (24)
モジュール
キーワード
- == (12)
-
_ _ send _ _ (24) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
add
_ special (12) - attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoload (12)
-
callee
_ id (12) -
class
_ eval (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) -
def
_ class (12) -
def
_ exception (6) -
def
_ module (12) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
each
_ resource (12) - filename (24)
- filename= (12)
-
find
_ local _ symbol (12) - getresource (12)
- getresources (12)
- initialize (12)
- inspect (12)
-
instance
_ eval (12) -
instance
_ method (12) - intern (12)
- max (48)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - min (48)
-
module
_ eval (12) - name= (12)
-
object
_ group (12) -
ole
_ classes (12) -
ole
_ types (12) - on (144)
-
original
_ name (24) - parse (12)
- 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) - receiver (10)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - send (24)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
to
_ json (24) -
to
_ s (12) -
undef
_ method (12)
検索結果
先頭5件
-
WEBrick
:: HTTPUtils :: FormData # name -> String | nil (18137.0) -
フォームデータの name 属性を文字列で表すアクセサです。
...フォームデータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCG... -
Method
# name -> Symbol (18114.0) -
このメソッドの名前を返します。
...このメソッドの名前を返します。
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.name # => :foo
//}... -
Module
# name -> String | nil (15168.0) -
モジュールやクラスの名前を文字列で返します。
...ル / クラスに対しては、name は nil を、それ以外はオブジェクト ID の文字列を返します。
//emlist[例][ruby]{
module A
module B
end
p B.name #=> "A::B"
class C
end
end
p A.name #=> "A"
p A::B.name #=> "A::B"
p A::C.name #=> "A::C"
# 名前のない......モジュール / クラス
p Module.new.name #=> nil
p Class.new.name #=> nil
p Module.new.to_s #=> "#<Module:0x00007f90b09112c8>"
p Class.new.to_s #=> "#<Class:0x00007fa5c40b41b0>"
//}... -
ARGF
. class # filename -> String (9101.0) -
現在開いている処理対象のファイル名を返します。
...は - を返します。
組み込み変数 $FILENAME と同じです。
$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark
$ ruby argf.rb foo bar glark
ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"... -
RDoc
:: Context # add _ class _ or _ module(collection , class _ type , name , superclass = nil) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (6632.0) -
collection に name で指定したクラス、モジュールを追加します。
...ection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、......RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクト... -
RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (6632.0) -
collection に name で指定したクラス、モジュールを追加します。
...ection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、......RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクト... -
RDoc
:: Context # add _ class(class _ type , name , superclass) -> RDoc :: SingleClass | RDoc :: NormalClass (6616.0) -
引数で指定したクラスを追加します。
...@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加......するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。... -
ERB
# def _ class(superklass=Object , methodname=& # 39;erb& # 39;) -> Class (6315.0) -
変換した Ruby スクリプトをメソッドとして定義した無名のクラスを返します。
...thodname メソッド名
//emlist[例][ruby]{
require 'erb'
class MyClass_
def initialize(arg1, arg2)
@arg1 = arg1; @arg2 = arg2
end
end
filename = 'example.rhtml' # @arg1 と @arg2 が使われている example.rhtml
erb = ERB.new(File.read(filename))
erb.filename = filename
MyClass =......erb.def_class(MyClass_, 'render()')
print MyClass.new('foo', 123).render()
# => test1foo
# test2123
//}... -
Module
# class _ variable _ defined?(name) -> bool (6255.0) -
name で与えられた名前のクラス変数がモジュールに存在する場合 true を 返します。
...
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') #=> false
//}...