4859件ヒット
[1-100件を表示]
(0.038秒)
種類
ライブラリ
- English (24)
- ビルトイン (2124)
- csv (24)
- e2mmap (12)
- etc (12)
- forwardable (48)
- 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) -
minitest
/ unit (1) - monitor (12)
-
mutex
_ m (12) - observer (12)
- openssl (876)
- optparse (36)
- pp (24)
- rake (36)
- rdoc (12)
-
rdoc
/ context (84) -
rdoc
/ generator / json _ index (12) -
rdoc
/ known _ classes (12) -
rdoc
/ parser (12) -
rdoc
/ single _ class (12) -
rdoc
/ stats (12) -
rdoc
/ top _ level (48) - resolv (48)
-
rexml
/ document (24) -
rubygems
/ ext / builder (12) -
shell
/ command-processor (6) - singleton (12)
- socket (72)
- thread (2)
- timeout (21)
- tracer (36)
- uri (12)
-
webrick
/ httputils (36) -
win32
/ registry (228) - win32ole (96)
クラス
-
ARGF
. class (656) - BasicObject (84)
- BigDecimal (12)
- CSV (24)
- Class (36)
- Complex (12)
- Data (6)
- Date (12)
- DateTime (12)
- Dir (36)
-
Etc
:: Passwd (12) - Exception (12)
- FalseClass (24)
- File (12)
-
Gem
:: Ext :: Builder (12) - IO (12)
- Integer (12)
- Method (72)
-
MiniTest
:: Unit :: TestCase (1) - Module (384)
- NilClass (24)
- Object (288)
-
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (12) -
OpenSSL
:: ASN1 :: Enumerated (12) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GeneralizedTime (12) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: ASN1 :: Null (12) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: Sequence (12) -
OpenSSL
:: ASN1 :: Set (12) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTCTime (12) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) - OptionParser (36)
-
RDoc
:: Context (84) -
RDoc
:: Generator :: JsonIndex (12) -
RDoc
:: Parser (12) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (48) -
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (24)
-
Resolv
:: DNS (36) -
RubyVM
:: InstructionSequence (12) -
Shell
:: CommandProcessor (6) - Socket (36)
- String (12)
- Struct (60)
- Thread (12)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TracePoint (48)
- Tracer (36)
- TrueClass (24)
-
URI
:: Generic (12) - UnboundMethod (36)
-
WEBrick
:: HTTPUtils :: FormData (36) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ TYPELIB (36) -
Win32
:: Registry (108) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
- Enumerable (48)
- Exception2MessageMapper (12)
- Forwardable (24)
- JSON (12)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (132)
- Marshal (24)
-
Mutex
_ m (12) - ObjectSpace (60)
-
OpenSSL
:: ASN1 (432) - RDoc (24)
-
Rake
:: TaskManager (24) -
Socket
:: Constants (36) - Timeout (21)
-
Win32
:: Registry :: Constants (108)
キーワード
-
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
$ FILENAME (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <=> (12)
- === (12)
- ARGF (12)
- BMPString (24)
- BitString (24)
- Boolean (12)
-
CLASS
_ MODIFIERS (12) - ConditionVariable (12)
- Enumerated (12)
- Fail (6)
- Forwardable (12)
- GeneralString (24)
- GeneralizedTime (12)
- GraphicString (24)
-
HKEY
_ CLASSES _ ROOT (24) -
HKEY
_ CURRENT _ CONFIG (24) -
HKEY
_ CURRENT _ USER (24) -
HKEY
_ DYN _ DATA (24) -
HKEY
_ LOCAL _ MACHINE (24) -
HKEY
_ PERFORMANCE _ DATA (24) -
HKEY
_ PERFORMANCE _ NLSTEXT (24) -
HKEY
_ PERFORMANCE _ TEXT (24) -
HKEY
_ USERS (24) - IA5String (24)
-
IPPROTO
_ TP (24) -
IPV6
_ RECVTCLASS (24) -
IPV6
_ TCLASS (24) - ISO64String (24)
- Integer (24)
-
KNOWN
_ CLASSES (12) - Location (12)
- Marshal フォーマット (12)
- MonitorMixin (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Null (12)
- NumericString (24)
- ObjectId (12)
- Observable (12)
- OctetString (24)
-
PASSTHROUGH
_ EXCEPTIONS (1) - PrintableString (24)
- Raise (6)
- Ruby用語集 (12)
- Sequence (12)
- Set (12)
- SingleClass (12)
- SingleForwardable (12)
- Singleton (12)
- String (12)
- T61String (24)
- TYPES (12)
- UTCTime (12)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
- [] (24)
-
_ dump (12) -
absolute
_ path (12) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ filter (12) -
add
_ module (12) -
all
_ classes _ and _ modules (12) - arity (24)
- autoload (12)
- autoload? (12)
- backtrace (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- binmode? (12)
-
callee
_ id (12) - cgi (12)
- class (12)
-
class
_ eval (12) -
class
_ name (12) -
class
_ variable _ defined? (12) -
class
_ variables (12) - classes (12)
- codepoints (14)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - constants (12)
-
create
_ id (12) -
def
_ builtin _ commands (6) -
def
_ instance _ delegator (12) -
default
_ event _ sources (12) -
default
_ port (12) - define (6)
-
define
_ aliases (12) -
define
_ finalizer (24) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) -
defined
_ class (12) - dump (24)
- each (24)
-
each
_ classmodule (12) -
each
_ codepoint (24) -
each
_ line (48) -
each
_ object (24) -
each
_ resource (12) -
external
_ encoding (12) - fail (36)
- filename (24)
- fileno (12)
-
find
_ class _ named (12) -
find
_ class _ path (12) -
find
_ local _ symbol (12) -
fixed
_ encoding? (12) - getbyte (12)
- getc (12)
- getresource (12)
- getresources (12)
- gets (36)
- handler= (12)
- include (12)
- include? (12)
-
include
_ class _ new (12) - included (12)
- inherited (12)
- initialize (12)
-
initialize
_ classes _ and _ modules (12) -
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) -
ins
_ methods _ i (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - inspect (84)
-
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) - intern (12)
-
internal
_ encoding (12) - irb (12)
-
irb
/ completion (12) -
kind
_ of? (12) - lineno (12)
- lineno= (12)
- lines (42)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
minitest
/ unit (1) -
module
_ eval (12) - name (24)
- nesting (12)
- new (564)
-
num
_ classes (12) -
ole
_ classes (24) -
ole
_ type (12) -
ole
_ types (12) - on (36)
- open (24)
-
original
_ name (24) -
parse
_ files _ matching (12) - path (24)
- pathmap (12)
- pos (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - raise (36)
-
rb
_ class _ allocate _ instance (12) -
rb
_ class _ inherited (12) -
rb
_ class _ initialize (12) -
rb
_ class _ instance _ methods (12) -
rb
_ class _ new _ instance (12) -
rb
_ class _ private _ instance _ methods (12) -
rb
_ class _ protected _ instance _ methods (12) -
rb
_ class _ s _ new (12) -
rb
_ define _ class (12) -
rb
_ define _ class _ id (12) -
rb
_ define _ class _ under (12) -
rb
_ define _ class _ variable (12) -
rb
_ is _ class _ id (12) -
rb
_ singleton _ class (12) -
rb
_ singleton _ class _ attached (12) -
rb
_ singleton _ class _ clone (12) -
rb
_ singleton _ class _ new (12) - rdoc (12)
-
rdoc
/ generator / json _ index (12) -
rdoc
/ parser / c (12) -
rdoc
/ single _ class (12) - read (12)
-
read
_ nonblock (12) - readbyte (24)
- readchar (12)
- readline (36)
- readlines (48)
- readpartial (12)
- refine (12)
-
remove
_ class _ variable (12) -
remove
_ instance _ variable (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - rewind (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ command _ manager (12) -
set
_ encoding (36) -
set
_ get _ line _ procs (24) -
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
source
_ location (12) - tell (12)
-
test
/ unit (1) - timeout (21)
-
to
_ a (48) -
to
_ bn (12) -
to
_ i (24) -
to
_ int (12) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ s (108) -
to
_ str (12) - tracer (12)
- uclass (12)
- unbind (12)
-
undefine
_ finalizer (12) - value (12)
- write (12)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス/メソッドの定義 (12)
- パターンマッチ (12)
- 制御構造 (12)
- 字句構造 (12)
- 正規表現 (12)
検索結果
先頭5件
-
Class
# inherited(subclass) -> () (27236.0) -
クラスのサブクラスが定義された時、新しく生成されたサブクラスを引数 にインタプリタから呼び出されます。このメソッドが呼ばれるタイミングは クラス定義文の実行直前です。
...subclass プログラム内で新たに定義された自身のサブクラスです。
//emlist[例][ruby]{
class Foo
def Foo.inherited(subclass)
puts "class \"#{self}\" was inherited by \"#{subclass}\""
end
end
class Bar < Foo
puts "executing class body"
end
# => class "Foo" was inher......ited by "Bar"
# executing class body
//}... -
Class
. new(superclass = Object) -> Class (21244.0) -
新しく名前の付いていない superclass のサブクラスを生成します。
...ていない superclass のサブクラスを生成します。
名前のないクラスは、最初に名前を求める際に代入されている定数名を検
索し、見つかった定数名をクラス名とします。
//emlist[例][ruby]{
p foo = Class.new # => #<Class:0x401b90f8>
p fo...... Class.new(superclass)
klass.module_eval {|m|
# ...
}
klass
//}
この場合も生成したクラスを返します。
ブロックの実行は Class#initialize が行います。
@param superclass 生成するクラスのスーパークラスを指定します。
//emlist[例][ruby]{
k = Class.......new{|c|
def initialize
p "in initialize"
end
def hoge
p "hoge hoge hoge"
end
}
o = k.new #=> "in initialize"
o.hoge #=> "hoge hoge hoge"
//}... -
Class
. new(superclass = Object) {|klass| . . . } -> Class (21244.0) -
新しく名前の付いていない superclass のサブクラスを生成します。
...ていない superclass のサブクラスを生成します。
名前のないクラスは、最初に名前を求める際に代入されている定数名を検
索し、見つかった定数名をクラス名とします。
//emlist[例][ruby]{
p foo = Class.new # => #<Class:0x401b90f8>
p fo...... Class.new(superclass)
klass.module_eval {|m|
# ...
}
klass
//}
この場合も生成したクラスを返します。
ブロックの実行は Class#initialize が行います。
@param superclass 生成するクラスのスーパークラスを指定します。
//emlist[例][ruby]{
k = Class.......new{|c|
def initialize
p "in initialize"
end
def hoge
p "hoge hoge hoge"
end
}
o = k.new #=> "in initialize"
o.hoge #=> "hoge hoge hoge"
//}... -
Resolv
:: DNS :: Resource :: IN (18006.0) -
DNS のインターネットクラスリソースを表すモジュールです。
...DNS のインターネットクラスリソースを表すモジュールです。
インターネットクラスリソースを利用する class に
mixinして利用します。... -
TracePoint
# defined _ class -> Class | module (15350.0) -
メソッドを定義したクラスかモジュールを返します。
...ジュールを返します。
//emlist[例][ruby]{
class C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C.new.foo
end
//}
メソッドがモジュールで定義されていた場合も(include に関係なく)モジュー
ルを返します......//emlist[例][ruby]{
module M; def foo; end; end
class C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C.new.foo
end
//}
[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、K......なく元のクラスを返します。
//emlist[例][ruby]{
class C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C.foo
end
//}
Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。
@see 50864... -
ARGF
. class # internal _ encoding -> Encoding | nil (15312.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...は Encoding.default_external を返します。
ARGF.class#set_encoding で設定します。
例:
# $ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('utf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>......例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encoding... -
OpenSSL
:: ASN1 . # PrintableString(value) -> OpenSSL :: ASN1 :: PrintableString -> OpenSSL :: ASN1 :: PrintableString (12607.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT も......しくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
OpenSSL
:: ASN1 . # PrintableString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString (12607.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT も......しくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
RDoc
:: TopLevel . find _ class _ named(name) -> RDoc :: NormalClass | RDoc :: SingleClass | nil (12501.0) -
RDoc が収集したクラスの内、name で指定した名前のクラスを返します。見つ からなかった場合は nil を返します。
RDoc が収集したクラスの内、name で指定した名前のクラスを返します。見つ
からなかった場合は nil を返します。
@param name クラス名を文字列で指定します。