るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.078秒)

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

ライブラリ

クラス

キーワード

検索結果

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...

絞り込み条件を変える