576件ヒット
[201-300件を表示]
(0.235秒)
ライブラリ
- ビルトイン (24)
-
irb
/ cmd / chws (24) -
irb
/ cmd / pushws (36) -
irb
/ context (24) - json (72)
- prettyprint (12)
- rake (36)
-
rexml
/ document (204) -
rinda
/ rinda (60) -
rinda
/ tuplespace (60) - scanf (24)
クラス
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: ChangeWorkspace (12) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (12) -
IRB
:: ExtendCommand :: PopWorkspace (12) -
IRB
:: ExtendCommand :: PushWorkspace (12) -
IRB
:: ExtendCommand :: Workspaces (12) -
JSON
:: State (72) -
ObjectSpace
:: WeakMap (24) - PrettyPrint (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: DocType (12) -
REXML
:: Element (84) -
Rake
:: NameSpace (24) -
Rinda
:: TupleSpace (60) -
Rinda
:: TupleSpaceProxy (60) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) - String (12)
モジュール
-
REXML
:: Namespace (72) -
Rake
:: TaskManager (12)
キーワード
- [] (24)
- []= (12)
-
add
_ namespace (24) - attribute (12)
-
count
_ space? (6) -
delete
_ namespace (12) - execute (60)
- genspace (12)
-
get
_ attribute _ ns (12) -
has
_ name? (12) -
in
_ namespace (12) -
local
_ name (12) - name (12)
- namespace (24)
- namespaces (36)
- notify (24)
- prefix (12)
- read (24)
-
read
_ all (24) - scanf (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - take (24)
- tasks (12)
-
to
_ h (12) -
to
_ hash (12) - whitespace (12)
- workspace (12)
- workspace= (12)
- write (24)
検索結果
先頭5件
- REXML
:: Attribute # namespace(arg = nil) -> String | nil - REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil - REXML
:: Element # namespace(prefix=nil) -> String - Rinda
:: TupleSpace # notify(event , pattern , sec = nil) -> Rinda :: NotifyTemplateEntry - Rinda
:: TupleSpaceProxy # notify(ev , tuple , sec = nil) -> Rinda :: NotifyTemplateEntry
-
REXML
:: Attribute # namespace(arg = nil) -> String | nil (9201.0) -
属性の名前空間の URI を返します。
...します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("xmlns:ns", "http://www.example.com/ns")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "http://www.example.com/... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9201.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......amespace 名前空間(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_e......lements("/root/a").first
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") #... -
REXML
:: Element # namespace(prefix=nil) -> String (9201.0) -
self の文脈で prefix が指している名前空間の URI を返します。
...ます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns='1' xmlns:y='2'><b/><c xmlns:z='3'/><y:d /></a>")
b = doc.elements['//b']
b.namespace # => "1"
b.namespace("y") # => "2"
b.namespace("z") # => nil
d = doc.elements['//y:d']
d.namespace # => "2"
//}... -
Rinda
:: TupleSpace # notify(event , pattern , sec = nil) -> Rinda :: NotifyTemplateEntry (9201.0) -
event で指定した種類のイベントの監視を開始します。
...ent で指定した種類のイベントの監視を開始します。
イベントを生じさせたタプルがpattern にマッチした場合にのみ報告されます。
イベントが生じた場合、
このメソッドの返り値の Rinda::NotifyTemplateEntry を経由し、
Rinda::Noti......fyTemplateEntry#each を用いて報告を受け取ります。
sec で監視期間を秒数で指定できます。 nil で無限に監視し続けます。
event として以下の3つを指定できます。
* 'write' : タプルが追加された
* 'take' : タプルが take された
*......'delete' : タプルが有効期限切れや上書きされたなどでタプルスペースから削除された
これで指定したイベントに加えて、
有効期限切れによって監視が終了した場合には 'close' イベントが報告されます。
pattern で指定できる... -
Rinda
:: TupleSpaceProxy # notify(ev , tuple , sec = nil) -> Rinda :: NotifyTemplateEntry (9201.0) -
event で指定した種類のイベントの監視を開始します。
...event で指定した種類のイベントの監視を開始します。
内部的にはリモートオブジェクトの Rinda::TupleSpace#notify にフォワードされます。
詳細は Rinda::TupleSpace#notify 参照してください
@param event 監視対象のイベント(文字列)
@para......m pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)... -
IRB
:: Context # workspace=(val) (9101.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
PrettyPrint
# genspace -> Proc (9101.0) -
空白を生成する Proc を返します。
空白を生成する Proc を返します。 -
REXML
:: DocType # namespaces -> nil (9101.0) -
nil を返します。
nil を返します。 -
REXML
:: Element # add _ namespace(prefix , uri) -> self (9101.0) -
名前空間を要素に追加します。
...ルトの namespace の uri を指定します。
既に同じ prefix が存在する場合はそれが上書きされます。
@param prefix 名前空間の prefix
@param uri 名前空間の uri
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo", "......bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
a.add_namespace("foo", "baz")
a.to_s # => "<a xmlns:foo='baz' xmlns='twiddle'/>"
//}...