2797件ヒット
[401-500件を表示]
(0.076秒)
別のキーワード
種類
ライブラリ
- ビルトイン (1776)
- csv (12)
- delegate (12)
- erb (12)
- forwardable (12)
-
irb
/ extend-command (12) - json (84)
- monitor (12)
-
mutex
_ m (12) - objspace (48)
- openssl (48)
- optparse (144)
- pp (36)
- psych (31)
-
rdoc
/ code _ object (12) -
rdoc
/ known _ classes (12) - singleton (12)
- timeout (37)
- win32ole (84)
クラス
-
ARGF
. class (192) - BasicObject (144)
- CSV (12)
- Class (72)
- Dir (72)
- ERB (12)
- File (36)
- Hash (36)
- IO (48)
-
JSON
:: Parser (24) -
JSON
:: State (12) - Method (92)
- Module (282)
- NameError (10)
- Object (492)
-
OpenSSL
:: ASN1 :: ObjectId (24) - OptionParser (144)
- PP (12)
-
RDoc
:: CodeObject (12) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ TYPELIB (36)
モジュール
- Enumerable (120)
-
IRB
:: ExtendCommandBundle (12) - JSON (24)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (76)
- Marshal (24)
- ObjectSpace (144)
-
OpenSSL
:: ASN1 (24) - Psych (19)
- RDoc (12)
- Timeout (21)
キーワード
- ! (12)
- != (12)
-
$ FILENAME (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <=> (12)
- == (12)
- === (20)
- ARGF (24)
- BasicObject (12)
- Class (12)
- DelegateClass (12)
- FALSE (8)
- Forwardable (12)
-
KNOWN
_ CLASSES (12) - Marshal フォーマット (12)
- Method (12)
- MonitorMixin (12)
-
Mutex
_ m (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
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) - NIL (8)
- ObjectId (24)
- Options (12)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- Singleton (12)
- String (12)
- TRUE (8)
- [] (24)
-
_ _ send _ _ (24) -
_ dump (12) -
_ load (12) - allocate (12)
- ancestors (12)
- argv (12)
-
boot
_ defclass (12) - call (24)
- class (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (24)
-
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - coverage (8)
-
create
_ id (12) - debug (12)
-
def
_ class (12) -
def
_ extend _ command (12) -
default
_ event _ sources (12) -
define
_ finalizer (24) -
define
_ singleton _ method (24) - display (12)
- drb (12)
-
drb
/ extservm (12) - dump (24)
- dup (12)
- each (48)
-
each
_ byte (24) -
each
_ char (24) -
each
_ line (48) -
each
_ object (48) - extend (12)
-
for
_ fd (12) - getbyte (12)
- getc (12)
-
global
_ variables (12) - include (12)
- initialize (12)
-
initialize
_ copy (12) - inspect (24)
-
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) - irb (12)
-
irb
/ completion (12) -
is
_ a? (12) -
kind
_ of? (12) -
local
_ variables (12) -
marshal
_ dump (12) -
marshal
_ load (12) - max (48)
-
method
_ missing (12) - methods (12)
- min (48)
-
module
_ eval (24) -
module
_ exec (12) - new (168)
-
object
_ group (12) -
ole
_ classes (24) -
ole
_ type (12) -
ole
_ types (12) - on (144)
- open (96)
- parameters (12)
- parse (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
private
_ constant (9) -
public
_ constant (9) -
public
_ method (12) - putc (12)
-
rb
_ class _ real (12) -
rb
_ define _ class _ under (12) -
rb
_ obj _ class (12) - rdoc (12)
-
reachable
_ objects _ from (12) - receiver (22)
-
remove
_ class _ variable (12) -
remove
_ classes _ and _ modules (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) - replace (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (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) -
safe
_ load (19) - send (24)
-
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
sort
_ by (24) - superclass (12)
- timeout (37)
-
to
_ ary (12) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (12) -
to
_ json _ raw _ object (12) -
to
_ proc (12) -
to
_ regexp (12) -
to
_ s (24) -
to
_ str (12) -
trace
_ object _ allocations (12) -
undefine
_ finalizer (12) - yaml (12)
-
yaml
_ tag (12) - オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス/メソッドの定義 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- 変数と定数 (12)
検索結果
先頭5件
-
Object
# singleton _ method(name) -> Method (21018.0) -
オブジェクトの特異メソッド name をオブジェクト化した Method オブ ジェクトを返します。
...ngで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。
//emlist[][ruby]{
class Demo
def initialize(n)
@iv = n
end
def hello()
"Hello, @iv = #{@iv}"
end
end
k = Demo.new(99)
def k.hi
"Hi, @iv = #{@iv}"
end
m......= k.singleton_method(:hi) # => #<Method: #<Demo:0xf8b0c3c4 @iv=99>.hi>
m.call #=> "Hi, @iv = 99"
m = k.singleton_method(:hello) # => NameError
//}
@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#method... -
Object
# to _ ary -> Array (21018.0) -
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......すべての場面で代置可能であるような、
* 配列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_ary
[3,4]
end
end
it = Foo.new
p([1,2] + it) #=> [1, 2, 3, 4]
//}
@see Object#to_a,Kernel.#Array... -
Object
# to _ str -> String (21018.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new
p('Second' + it) #=> "SecondEdition"
//}
@see Object#to_s,Kernel.#String... -
Object
# inspect -> String (21012.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...とインスタンス
変数の名前、値の組を元にした文字列を返します。
//emlist[][ruby]{
class Foo
end
Foo.new.inspect # => "#<Foo:0x0300c868>"
class Bar
def initialize
@bar = 1
end
end
Bar.new.inspect # => "#<Bar:0x0300c868 @bar=1>"
/... -
Object
# to _ hash -> Hash (21012.0) -
オブジェクトの Hash への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......すべての場面で代置可能であるような、
* ハッシュそのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_hash
{'as' => 24}
end
end
it = Foo.new
p({:as => 12}.merge(it)) #=> {"as"=>24, :as=>12}
//}... -
Object
# to _ int -> Integer (21012.0) -
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......が使われるすべての場面で代置可能であるような、
* 整数そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_int
1
end
end
ary = [:a, :b, :c]
p(ary[Foo.new]) # => :b
//}
@see Kernel.#Integer... -
Object
# to _ proc -> Proc (21012.0) -
オブジェクトの Proc への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
//emlist[][ruby]{
def doing
yield
end
class Foo
def to_proc
Proc.new{p 'ok'}
end
end
it = Foo.new
doin... -
Object
# to _ regexp -> Regexp (21012.0) -
オブジェクトの Regexp への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......ての場面で代置可能であるような、
* 正規表現そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_regexp
/[\d]+/
end
end
it = Foo.new
p Regexp.union(/^at/, it) #=> /(?-mix:^at)|(?-mix:[\d]+)/
//}... -
Class
# superclass -> Class | nil (15231.0) -
自身のスーパークラスを返します。
...{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObject.superclass #=> nil......//}
@see Class#subclasses...
