るりまサーチ

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

別のキーワード

  1. state space
  2. state space=
  3. json space
  4. markup space
  5. json space=

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

REXML::Namespace#name -> String (24103.0)

prefix を含まない「ローカルな」名前を返します。

prefix を含まない「ローカルな」名前を返します。

JSON::State#space -> String (18150.0)

JSON 形式の文字列のトークン間に挿入する文字列を返します。

...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 # => "\t"
puts JSON.generate([1, 2, { name: "tanaka", age:...
...19 }], json_state)
# => [1,2,{"name": "tanaka","age": 19}]
//}...

Rake::TaskManager#in_namespace(name) {|name_space| ... } -> Array (12510.0)

与えられた名前の名前空間でブロックを評価します。

...クを評価します。

@param name 名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app

name
space :sample do
def hoge
puts "hoge"
end
end

task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"...

Kernel#namespace(name = nil) { ... } -> Rake::NameSpace (12502.0)

新しい名前空間を作成します。

...新しい名前空間を作成します。

与えられたブロックを評価する間は、その名前空間を使用します。

例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.

@see Rake::TaskManager#in_namespace...

REXML::Element#delete_namespace(namespace = "xmlns") -> self (12401.0)

名前空間を要素から削除します。

...を削除します。

@param namespace 削除する名前空間の prefix

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
doc.root.delete_namespace
doc.to_s # => "<a xmlns:foo='bar'/>"
doc.root.delete_namespace 'foo'
doc.to_s # => "<a/>"...

絞り込み条件を変える

REXML::Namespace#name=(name) (12209.0)

名前を設定します。

...名前を設定します。

prefix を持つ名前も持たない名前も受け付けます。

@param name 名前(文字列)...

REXML::Attribute#namespace(arg = nil) -> String | nil (12201.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/ns"
//}...

REXML::Attributes#namespaces -> { String => String } (12201.0)

self の中で宣言されている名前空間の集合を返します。

...p://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</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
# => {}
//}...

REXML::DocType#namespaces -> nil (12201.0)

nil を返します。

nil を返します。
<< 1 2 3 ... > >>