るりまサーチ

最速Rubyリファレンスマニュアル検索!
37件ヒット [1-37件を表示] (0.129秒)
トップページ > クエリ:-[x] > クエリ:p[x] > クエリ:element[x] > クエリ:context[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. lupdecomposition p
  5. kernel $-p

ライブラリ

クラス

キーワード

検索結果

REXML::DocType#context -> { Symbol => object } (21225.0)

DTD が属する文書の「コンテキスト」を返します。

...DTD が属する文書の「コンテキスト」を返します。

具体的には親ノードである REXML::Document オブジェクトの
REXML::Element#context を返します。

コンテキストの具体的な内容については REXML::Element#context
参照してください。...

REXML::Element#whitespace -> bool (9218.0)

要素(self)内で空白が考慮されるならば真を返します。

...らば真を返します。

これは、
* REXML::Element#context に :respect_whitespace も :compress_whitespace も
含まれない
* context の :respect_whitespace に self の要素名が含まれていて、
:compress_whitespace に self の要素名が含まれていない。...
...のには :all が指定されている場合と、
配列に含まれている場合の両方があります。
のいずれかの場合に真を返します。

要素名として REXML::Namespace#expanded_name が使われるので、
名前空間の prefix は判定に影響します。...

REXML::Element.new(arg = UNDEFINED, parent = nil, context = nil) -> REXML::Element (3456.0)

要素オブジェクトを生成します。

...の名前は arg に設定されます。
arg が REXML::Element オブジェクトの場合は、
新たな要素の名前、属性、context が arg のもので初期化されます。

p
arent で親ノードを指定します。

context
には hash table で要素のコンテキストを指定...
...: :respect_whitespace
空白を考慮して欲しい要素の名前の集合を文字列の配列で指定します。
また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参...
...照してください。
: :compress_whitespace
空白を無視して欲しい要素の名前の集合を文字列の配列で指定します。
この指定は :respect_whitespace での指定を上書きします。
すべての要素で空白を無視して欲しい場合には
:all を...

NEWS for Ruby 3.0.0 (390.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Pro...
...}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}

* Arguments forwarding (`...`) now supports leading arguments.
16378

//emlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}

* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern mat...
...* Array#*
* Can be sliced with Enumerator::ArithmeticSequence

//emlist[][ruby]{
dirty_data = ['--', 'data1', '--', 'data2', '--', 'data3']
dirty_data[(1..).step(2)] # take each second element
# => ["data1", "data2", "data3"]
//}

* Binding
* Binding#eval when called with one argument wi...