77件ヒット
[1-77件を表示]
(0.129秒)
ライブラリ
-
net
/ imap (11) - pstore (11)
-
rexml
/ document (33)
クラス
-
Net
:: IMAP (11) - PStore (11)
-
RDoc
:: Options (22) -
REXML
:: Attributes (11) -
REXML
:: Instruction (22)
キーワード
- content (11)
-
get
_ attribute _ ns (11) - root= (11)
- setquota (11)
- target (11)
- transaction (11)
検索結果
先頭5件
-
RDoc
:: Options # root -> Pathname (24118.0) -
コマンドライン引数の --root オプションで指定したディレクトリを返します。
...コマンドライン引数の --root オプションで指定したディレクトリを返します。
指定されていない場合はカレントディレクトリを返します。... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (15344.0) -
namespace と name で特定される属性を返します。
...る属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使......URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").fir......st
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
PStore
# transaction(read _ only = false) {|pstore| . . . } -> object (12213.0) -
トランザクションに入ります。 このブロックの中でのみデータベースの読み書きができます。
...値を返します。
@raise PStore::Error read_only を真にしたときに、データベースを変更しようした場合に発生します。
例:
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... -
RDoc
:: Options # root=(val) (12118.0) -
コマンドライン引数の --root オプションと同様の指定を行います。
...コマンドライン引数の --root オプションと同様の指定を行います。
@param val パスを文字列で指定します。... -
REXML
:: Instruction # content -> String | nil (6113.0) -
XML 処理命令の内容を返します。
...L 処理命令の内容を返します。
//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-st......ylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}... -
REXML
:: Instruction # target -> String (6113.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-styleshee... -
Net
:: IMAP # setquota(mailbox , quota) -> Net :: IMAP :: TaggedResponse (3207.0) -
SETQUOTA コマンドを送り、指定したメールボックスに quota を設定します。
...nil ならば、mailbox の quota を破棄します。
quota が整数なら STORAGE をその値に変更します。
詳しくは 2087 を見てください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。
@param mailbox......ta を設定するメールボックス名(文字列)
@param quota quotaの値(ストレージのサイズ、もしくは nil)
@raise Net::IMAP::NoResponseError 指定したメールボックスが quota root
でない場合、もしくは権限が存在しない場合に発生します。...