36件ヒット
[1-36件を表示]
(0.058秒)
別のキーワード
ライブラリ
- ビルトイン (12)
-
rexml
/ document (24)
クラス
- Proc (12)
-
REXML
:: Instruction (24)
キーワード
- content (12)
-
source
_ location (12)
検索結果
先頭3件
-
REXML
:: Instruction # target -> String (18221.0) -
XML 処理命令のターゲットを返します。
...ットを返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # =... -
Proc
# source _ location -> [String , Integer] | nil (144.0) -
ソースコードのファイル名と行番号を配列で返します。
...クトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(ev... -
REXML
:: Instruction # content -> String | nil (126.0) -
XML 処理命令の内容を返します。
...容を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].con......tent # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...