528件ヒット
[1-100件を表示]
(0.125秒)
ライブラリ
- ビルトイン (12)
-
irb
/ cmd / chws (24) -
irb
/ cmd / pushws (36) -
irb
/ context (24) - json (48)
- prettyprint (12)
- rake (24)
-
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 (48) -
ObjectSpace
:: WeakMap (12) - PrettyPrint (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: DocType (12) -
REXML
:: Element (72) -
Rinda
:: TupleSpace (60) -
Rinda
:: TupleSpaceProxy (60) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) - String (12)
モジュール
- Kernel (12)
-
REXML
:: Namespace (84) -
Rake
:: TaskManager (12)
キーワード
- [] (12)
-
add
_ namespace (24) - attribute (12)
-
count
_ space? (6) - execute (60)
- genspace (12)
-
get
_ attribute _ ns (12) -
has
_ name? (12) -
in
_ namespace (12) -
local
_ name (12) - name (12)
- namespace (36)
- namespaces (36)
- notify (24)
- prefix (12)
- prefix= (12)
- read (24)
-
read
_ all (24) - scanf (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - take (24)
- whitespace (12)
- workspace (12)
- workspace= (12)
- write (24)
検索結果
先頭5件
-
Scanf
:: FormatString # space (21102.0) -
@todo
@todo -
JSON
:: State # space -> String (18226.0) -
JSON 形式の文字列のトークン間に挿入する文字列を返します。
...す。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(space: "")
json_state.space # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state = JSON::State.new(space: "\t")
json_state.space... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (12302.0) -
与えられた名前の名前空間でブロックを評価します。
...ます。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"
end
end
//}... -
REXML
:: Element # whitespace -> bool (12201.0) -
要素(self)内で空白が考慮されるならば真を返します。
...ます。
これは、
* REXML::Element#context に :respect_whitespace も :compress_whitespace も
含まれない
* context の :respect_whitespace に self の要素名が含まれていて、
:compress_whitespace に self の要素名が含まれていない。
「含まれて......のには :all が指定されている場合と、
配列に含まれている場合の両方があります。
のいずれかの場合に真を返します。
要素名として REXML::Namespace#expanded_name が使われるので、
名前空間の prefix は判定に影響します。... -
IRB
:: Context # workspace -> IRB :: WorkSpace (9301.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (9301.0) -
属性の名前空間の URI を返します。
...の URI を返します。
URI が定義されていない場合は nil を返します。
@param arg この値を指定すると、その属性の名前空間でなく、arg という名前空間
の URI が返されます。
通常は省略します。
//emlist[][ruby]{
require 'r......exml/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/ns"
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9301.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......このメソッドを
使うことで属性を正しく指定することができます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xm......ot/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") # => nil
//}... -
REXML
:: Attributes # namespaces -> { String => String } (9301.0) -
self の中で宣言されている名前空間の集合を返します。
...lf の中で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmln......s:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}... -
Rinda
:: TupleSpace # notify(event , pattern , sec = nil) -> Rinda :: NotifyTemplateEntry (9201.0) -
event で指定した種類のイベントの監視を開始します。
...り値の Rinda::NotifyTemplateEntry を経由し、
Rinda::NotifyTemplateEntry#each を用いて報告を受け取ります。
sec で監視期間を秒数で指定できます。 nil で無限に監視し続けます。
event として以下の3つを指定できます。
* 'write' : タプル......は lib:rinda/rinda#tuplepattern を
参照してください。
@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)
=== 例
require 'rinda/tuplespace'
tuplespace = Rinda::TupleSpace.new......observer = tuplespace.notify("write", ["xyz", nil, nil])
Therad.new do
observer.each{|event, tuple| p event, tuple }
end
tuplespace.write(["xyz", 0, 1])
tuplespace.write(["pqr", 0, 1])
tuplespace.write(["xyz", 4, 2])...