22件ヒット
[1-22件を表示]
(0.097秒)
別のキーワード
ライブラリ
-
rexml
/ document (11) - win32ole (11)
キーワード
- Entity (11)
-
WIN32OLE
_ VARIANT (11)
検索結果
-
REXML
:: Entity (19.0) -
XML における実体(エンティティ、entity)の宣言(declaration)を表わすクラス。
...体宣言に対応するものです。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!DOCTYPE document [
<!ENTITY f "foo bar baz">
<!ENTITY x SYSTEM "x.txt">
<!ENTITY y SYSTEM "y.png" NDATA PNG>
<!ENTITY % z "zzz">
<!ENTITY zz "%z;%z;&f;">
]>
EOS
entities = doc.doc......ta は nil を返す
p entities["x"].name # => "x"
p entities["x"].value # => nil
p entities["x"].external # => "SYSTEM"
p entities["x"].ref # => "x.txt"
p entities["x"].ndata # => nil
# y は解析対象外実体(unparsed entity)なので ndata が記法名を返す
p entities["y"].ndata # => "PNG... -
WIN32OLE
_ VARIANT (19.0) -
OLEオートメーションの標準型のVARIANTオブジェクトをRubyで利用するための クラスです。
...装に依存します。
=== サンプルコード
shell = WIN32OLE.new('Shell.Application')
folder = shell.NameSpace('C:\\Users\\Public\\Documents')
item = folder.ParseName('test.txt')
v = WIN32OLE_VARIANT.new('Delete')
item.invokeVerb(v) # => ゴミ箱への移動ダイアロ...