288件ヒット
[201-288件を表示]
(0.033秒)
ライブラリ
- ビルトイン (168)
- delegate (36)
- json (36)
-
rdoc
/ code _ object (24) - win32ole (24)
クラス
- Delegator (36)
- Module (48)
- Object (96)
-
RDoc
:: CodeObject (24) -
WIN32OLE
_ TYPE (24)
モジュール
キーワード
-
default
_ event _ sources (12) -
document
_ self= (12) - grep (24)
-
initialize
_ copy (12) -
instance
_ methods (12) -
ole
_ methods (12) -
private
_ instance _ methods (12) -
private
_ methods (12) -
protected
_ instance _ methods (12) -
protected
_ methods (24) -
public
_ instance _ methods (12) -
public
_ methods (24) -
remove
_ methods _ etc (12) - send (24)
-
singleton
_ methods (12) -
to
_ json (12) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12)
検索結果
先頭5件
-
Delegator
# protected _ methods(all = true) -> [Symbol] (6114.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
...そのオブジェクトが理解できる protected メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#protected_methods... -
Delegator
# public _ methods(all = true) -> [Symbol] (6114.0) -
そのオブジェクトが理解できる public メソッド名の一覧を返します。
...そのオブジェクトが理解できる public メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#public_methods... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (6007.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("tanaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (3023.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
...自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json... -
RDoc
:: CodeObject # document _ self=(val) (3007.0) -
自身をドキュメントに含めるかどうかを設定します。
...c: を指定した時に true が設定されます。
:nodoc:、:stopdoc: を指定した時に false が設定されます。
@param val true を指定した場合、自身をドキュメントに含めます。
@see RDoc::CodeObject#document_children=,
RDoc::CodeObject#remove_methods_etc... -
Enumerable
# grep(pattern) -> [object] (109.0) -
pattern === item が成立する要素を全て含んだ配列を返します。
...す。
@param pattern 「===」メソッドを持つオブジェクトを指定します。
//emlist[例][ruby]{
['aa', 'bb', 'cc', 'dd', 'ee'].grep(/[bc]/) # => ["bb", "cc"]
Array.instance_methods.grep(/gr/) # => [:grep, :grep_v, :group_by]
//}
@see Enumerable#select
@see Enumerable#grep_v... -
Enumerable
# grep(pattern) {|item| . . . } -> [object] (109.0) -
pattern === item が成立する要素を全て含んだ配列を返します。
...す。
@param pattern 「===」メソッドを持つオブジェクトを指定します。
//emlist[例][ruby]{
['aa', 'bb', 'cc', 'dd', 'ee'].grep(/[bc]/) # => ["bb", "cc"]
Array.instance_methods.grep(/gr/) # => [:grep, :grep_v, :group_by]
//}
@see Enumerable#select
@see Enumerable#grep_v... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (19.0) -
型が持つソースインターフェイスを取得します。
...。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名......source = type.default_event_sources[0]
class WebEvent
def initialize
@completed = false
end
attr_reader :completed
end
source.ole_methods.each do |m|
WebEvent.module_eval do
define_method("on#{m.name}") do |*arg|
if arg[0] == "ページが表示されました"......ruby-lang.org/ja/"]
2010-10-06 22:33:54 +0900: StatusTextChange was called
["ページが表示されました"]
@see WIN32OLE_TYPE.new, WIN32OLE_TYPE#progid,
WIN32OLE_TYPE#ole_methods, WIN32OLE_METHOD#name,
WIN32OLE_EVENT.new, WIN32OLE_EVENT#handler=,
WIN32OLE_EVENT.message_loop...