240件ヒット
[201-240件を表示]
(0.027秒)
別のキーワード
ライブラリ
- ビルトイン (132)
- delegate (36)
- json (36)
-
rdoc
/ code _ object (12) - win32ole (24)
クラス
- Delegator (36)
- Module (48)
- Object (84)
-
RDoc
:: CodeObject (12) -
WIN32OLE
_ TYPE (24)
キーワード
-
default
_ event _ sources (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)
検索結果
先頭4件
-
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (12108.0) -
生の文字列を格納したハッシュを生成します。
...なく生の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is ill... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (9013.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 (6023.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... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (31.0) -
型が持つソースインターフェイスを取得します。
...。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名......ources[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] == "ページが表示されました"
@completed = true
e......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...