るりまサーチ

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

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 4 ... > >>

JSON::State#space_before=(string) (6125.0)

JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列をセットします。

...quire "json"

json_state = JSON::State.new(space_before: "")
json_state.space_before # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]

json_state.space_before = " "
json_state.space_before # => " "
puts JSON.gen...

RDoc::Markup::SPACE -> ?\s (6101.0)

空白文字です。?\s を返します。ライブラリの内部で使用します。

空白文字です。?\s を返します。ライブラリの内部で使用します。

Scanf::FormatSpecifier#count_space? (6101.0)

@todo

@todo

IRB::Context#workspace=(val) (6100.0)

ライブラリ内部で使用します。

ライブラリ内部で使用します。

PrettyPrint#genspace -> Proc (6100.0)

空白を生成する Proc を返します。

空白を生成する Proc を返します。

絞り込み条件を変える

REXML::Attribute#namespace(arg = nil) -> String | nil (6100.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 } (6100.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 (6100.0)

nil を返します。

nil を返します。

REXML::Element#add_namespace(prefix, uri) -> self (6100.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'/>"
//}...

REXML::Element#add_namespace(uri) (6100.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'/>"
//}...

絞り込み条件を変える

<< < 1 2 3 4 ... > >>