420件ヒット
[1-100件を表示]
(0.025秒)
種類
- インスタンスメソッド (168)
- モジュール関数 (156)
- 特異メソッド (84)
- 文書 (12)
ライブラリ
- ビルトイン (36)
- json (132)
- objspace (72)
- prettyprint (24)
-
rexml
/ document (96) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) - scanf (24)
クラス
-
JSON
:: State (84) - PrettyPrint (24)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: CData (12) -
REXML
:: Element (12) -
REXML
:: XPath (36) -
Rinda
:: TupleSpace (12) -
Rinda
:: TupleSpaceProxy (12) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) - String (12)
モジュール
- JSON (48)
- ObjectSpace (108)
キーワード
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - attribute (12)
-
count
_ space? (6) -
count
_ tdata _ objects (12) - each (12)
-
each
_ object (24) - first (12)
- format (12)
-
garbage
_ collect (12) - generate (12)
-
get
_ attribute _ ns (12) - match (12)
- namespace (12)
- namespaces (12)
- new (24)
- notify (24)
-
pretty
_ generate (12) -
pretty
_ unparse (12) - scanf (12)
-
singleline
_ format (12) - space= (12)
-
space
_ before (12) -
space
_ before= (12) -
to
_ h (12) -
to
_ hash (12) -
trace
_ object _ allocations (12) -
trace
_ object _ allocations _ start (12) -
trace
_ object _ allocations _ stop (12) - unparse (12)
- 正規表現 (12)
検索結果
先頭5件
-
JSON
:: State # space -> String (21125.0) -
JSON 形式の文字列のトークン間に挿入する文字列を返します。
...son"
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 # => "\t"
puts JSON.generate([1, 2, { n......ame: "tanaka", age: 19 }], json_state)
# => [1,2,{"name": "tanaka","age": 19}]
//}... -
Scanf
:: FormatString # space (21101.0) -
@todo
@todo -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9300.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"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
E......oot/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
:: XPath . match(element , path = nil , namespaces = {} , variables = {}) -> [Node] (9300.0) -
element の path で指定した XPath 文字列にマッチするノードの配列を 返します。
...element の path で指定した XPath 文字列にマッチするノードの配列を
返します。
path に相対パスを指定した場合は element からの相対位置で
マッチするノードを探します。
絶対パスを指定した場合は element が属する文書のルー......ッチするノードを探します。
path を省略すると "*" を指定したことになります。
namespace で名前空間の対応付けを Hash で指定します。
variable で XPath 内の変数に対応する値を指定できます。
XPathインジェクション攻撃を避け......るため、適切な
エスケープを付加するため、に用います。
@param element 要素(REXML::Element)
@param path XPath文字列
@param namespace 名前空間とURLの対応付け
@param variables 変数名とその値の対応付け
//emlist[][ruby]{
require 'rexml/document'
doc =... -
JSON
:: State # space=(string) (9125.0) -
JSON 形式の文字列のトークン間に挿入する文字列をセットします。
...equire "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.space = "\t"
json_state.space # => "\t"
puts JSON.generate([1, 2, { name: "tan......aka", age: 19 }], json_state)
# => [1,2,{"name": "tanaka","age": 19}]
//}... -
JSON
:: State # space _ before -> String (9125.0) -
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列を返します。
...require "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 = 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=(string) (9125.0) -
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列をセットします。
...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.generate([1, 2,......{ name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name" :"tanaka","age" :19}]
//}... -
Scanf
:: FormatSpecifier # count _ space? (9101.0) -
@todo
@todo -
ObjectSpace
. # allocation _ sourcefile(object) -> String (9100.0) -
objectの元となったソースファイル名を返します。
...quire 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop... -
ObjectSpace
. # allocation _ sourceline(object) -> Integer (9100.0) -
objectの元となったソースファイルの行番号を返します。
...y]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "line:#{ObjectSpace::allocation_sourceline(obj)}" # => line:4
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop...