1000件ヒット
[101-200件を表示]
(0.127秒)
別のキーワード
クラス
-
ARGF
. class (60) - Array (24)
- BasicObject (72)
- Class (12)
- Hash (55)
- Integer (12)
- Method (117)
- Module (252)
- Object (120)
- OptionParser (144)
-
RubyVM
:: InstructionSequence (12) -
Thread
:: Backtrace :: Location (36) - TracePoint (12)
- UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (48)
キーワード
- ! (12)
- != (12)
- < (12)
- << (7)
- <=> (12)
- == (12)
- === (8)
- >> (7)
- [] (12)
-
_ dump (12) -
absolute
_ path (12) -
append
_ features (12) - autoload (12)
-
base
_ label (12) - bind (12)
- call (24)
-
class
_ eval (24) -
class
_ exec (12) -
default
_ event _ sources (12) -
define
_ singleton _ method (24) -
defined
_ class (12) - display (12)
-
each
_ char (12) -
each
_ codepoint (24) -
each
_ entry (24) - extend (12)
- getbyte (12)
- getc (12)
- inherited (12)
-
initialize
_ copy (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
marshal
_ load (12) - merge (24)
-
module
_ eval (24) -
module
_ exec (12) - on (144)
-
prepend
_ features (12) -
pretty
_ print (12) -
private
_ class _ method (24) -
private
_ constant (12) -
public
_ class _ method (24) -
public
_ constant (12) -
remove
_ method (12) - replace (12)
-
singleton
_ class? (12) -
singleton
_ methods (12) -
sort
_ by (24) -
super
_ method (11) -
to
_ a (24) -
to
_ ary (12) -
to
_ bn (12) -
to
_ h (19) -
to
_ proc (12) -
to
_ s (24) - unbind (12)
-
undef
_ method (12)
検索結果
先頭5件
-
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (9249.0) -
型が持つソースインターフェイスを取得します。
...す。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォ......TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = WIN32OLE_T......YPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返されたインターフェイスが選択されます。
次のサンプル... -
Method
# super _ method -> Method | nil (9235.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...
self 内で super を実行した際に実行されるメソッドを Method オブジェ
クトにして返します。
@see UnboundMethod#super_method
//emlist[例][ruby]{
class Super
def foo
"superclass method"
end
end
class Sub < Super
def foo
"subclass method"
end
end
m = S......ub.new.method(:foo) # => #<Method: Sub#foo>
m.call # => "subclass method"
m.super_method # => #<Method: Super#foo>
m.super_method.call # => "superclass method"
//}... -
ARGF
. class # each _ codepoint { |c| . . . } -> self (9224.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...
self の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポイントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ ec......ho "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,... -
ARGF
. class # getbyte -> Integer | nil (9135.0) -
self から 1 バイト(0..255)を読み込み整数として返します。 既に EOF に達していれば nil を返します。
...
self から 1 バイト(0..255)を読み込み整数として返します。
既に EOF に達していれば nil を返します。
ARGF はスクリプトに指定した引数(Object::ARGV を参照) をファイル名
とみなして、それらのファイルを連結した 1 つの仮想フ......cho "bar" > file2
$ ruby argf.rb file1 file2
ARGF.getbyte # => 102
ARGF.getbyte # => 111
ARGF.getbyte # => 111
ARGF.getbyte # => 10
ARGF.getbyte # => 98
ARGF.getbyte # => 97
ARGF.getbyte # => 114
ARGF.getbyte # => 10
ARGF.getbyte # => nil
@see ARGF.class#getc, ARGF.class#gets... -
ARGF
. class # getc -> String | nil (9135.0) -
self から 1 文字読み込んで返します。EOF に到達した時には nil を返します。
...
self から 1 文字読み込んで返します。EOF に到達した時には nil を返します。
ARGF はスクリプトに指定した引数(Object::ARGV を参照) をファイル名
とみなして、それらのファイルを連結した 1 つの仮想ファイルを表すオブジェ......foo" > file1
$ echo "bar" > file2
$ ruby argf.rb file1 file2
ARGF.getc # => "f"
ARGF.getc # => "o"
ARGF.getc # => "o"
ARGF.getc # => "\n"
ARGF.getc # => "b"
ARGF.getc # => "a"
ARGF.getc # => "r"
ARGF.getc # => "\n"
ARGF.getc # => nil
@see ARGF.class#getbyte, ARGF.class#gets... -
RubyVM
:: InstructionSequence # to _ a -> Array (9135.0) -
self の情報を 14 要素の配列にして返します。
...
self の情報を 14 要素の配列にして返します。
命令シーケンスを以下の情報で表します。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバー......at_type
データフォーマットを示す数値。常に 1。
: misc
以下の要素から構成される Hash オブジェクト。
:arg_size: メソッド、ブロックが取る引数の総数(1 つもない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:st......さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成される命令シーケンスのラ
ベル。トップレベルでは "<main>"。文字列から作成していた場合は
"<compiled>"。
: #path
命令... -
Thread
:: Backtrace :: Location # absolute _ path -> String (9129.0) -
self が表すフレームの絶対パスを返します。
...
self が表すフレームの絶対パスを返します。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end
# => /path/to/foo.rb
# /path....../to/foo.rb
# /path/to/foo.rb
//}
@see Thread::Backtrace::Location#path... -
ARGF
. class # each _ codepoint -> Enumerator (9124.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...
self の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポイントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ ec......ho "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,... -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (6381.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
...ド名
(public あるいは protected メソッド) の一覧を返します。
inherited_too が真のときは継承した特異メソッドを含みます。
継承した特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスー......(Classのインスタンスの特異メソッド)などです。
singleton_methods(false) は、Object#methods(false) と同じです。
@param inherited_too 継承した特異メソッドを含める場合は真を、
そうでない場合は偽を指定します。
//emlist......1][ruby]{
Parent = Class.new
class <<Parent
private; def private_class_parent() end
protected; def protected_class_parent() end
public; def public_class_parent() end
end
Foo = Class.new(Parent)
class <<Foo
private; def private_class_foo() end
protected; def protected_class_foo()...