60件ヒット
[1-60件を表示]
(0.078秒)
別のキーワード
ライブラリ
- pstore (12)
-
rexml
/ document (24)
クラス
- PStore (12)
-
RDoc
:: Options (24) -
REXML
:: Instruction (24)
キーワード
- content (12)
- root= (12)
- target (12)
- transaction (12)
検索結果
先頭5件
-
RDoc
:: Options # root -> Pathname (21118.0) -
コマンドライン引数の --root オプションで指定したディレクトリを返します。
...コマンドライン引数の --root オプションで指定したディレクトリを返します。
指定されていない場合はカレントディレクトリを返します。... -
RDoc
:: Options # root=(val) (9118.0) -
コマンドライン引数の --root オプションと同様の指定を行います。
...コマンドライン引数の --root オプションと同様の指定を行います。
@param val パスを文字列で指定します。... -
PStore
# transaction(read _ only = false) {|pstore| . . . } -> object (6113.0) -
トランザクションに入ります。 このブロックの中でのみデータベースの読み書きができます。
...した場合に発生します。
例:
require 'pstore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # => []
ary = db["root"] = [1,2,3,4]
ary[0] = [1,1.5]
end
db.transaction(true) do |pstore|
pstore["root"] = 'aaa' # => ここで例外発生
end... -
REXML
:: Instruction # content -> String | nil (3007.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].content # =>... -
REXML
:: Instruction # target -> String (3007.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 # => "typ...