696件ヒット
[601-696件を表示]
(0.041秒)
別のキーワード
ライブラリ
- ビルトイン (105)
- csv (36)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (60)
-
net
/ http (48) - openssl (12)
- rake (12)
-
rexml
/ document (156) -
rubygems
/ specification (36) - set (27)
- socket (60)
- win32ole (24)
クラス
- Addrinfo (48)
- BasicObject (12)
- BigDecimal (12)
- CSV (36)
- Complex (12)
- Date (12)
- DateTime (12)
- Exception (12)
-
Gem
:: Specification (36) - Logger (60)
- Module (12)
-
OpenSSL
:: BN (12) -
REXML
:: Attribute (12) -
REXML
:: Child (24) -
REXML
:: Element (96) -
REXML
:: Elements (24) -
Rake
:: Application (12) - Range (12)
- Rational (12)
- Regexp (12)
- Set (36)
- Socket (12)
- String (36)
- Struct (12)
- Thread (24)
- ThreadGroup (12)
- Time (12)
- WIN32OLE (24)
モジュール
-
Net
:: HTTPHeader (48)
キーワード
- << (48)
- [] (12)
- []= (12)
- add? (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ element (12) -
add
_ field (12) -
add
_ loader (12) -
add
_ namespace (24) -
add
_ row (12) -
add
_ runtime _ dependency (12) -
add
_ trace _ func (12) - center (12)
- connect (12)
-
connect
_ from (24) -
delete
_ attribute (12) -
family
_ addrinfo (24) -
get
_ fields (12) - ljust (12)
- log (24)
-
method
_ added (12) -
mod
_ add (12) - namespace (12)
-
next
_ sibling= (12) -
previous
_ sibling= (12) - puts (12)
- rjust (12)
-
set
_ trace _ func (12) - setproperty (24)
-
singleton
_ method _ added (12) - text= (12)
-
to
_ json (120)
検索結果
先頭5件
-
REXML
:: Child # previous _ sibling=(other) (19.0) -
other を self の前の隣接ノードとします。
...り、親ノードが持つ子ノード列の self の前に
other を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.pr... -
REXML
:: Element # text=(text) (19.0) -
「先頭の」テキストノードを text で置き換えます。
...設定されます。
nil を指定すると最初のテキストノードが削除されます。
@param text 置き換え後のテキスト(文字列、REXML::Text, nil(削除))
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a><b/></a>')
doc.to_s # => "<a><b/></a>"
doc.ro......ot.text = "Foo"; doc.to_s # => "<a><b/>Foo</a>"
doc.root.text = "Bar"; doc.to_s # => "<a><b/>Bar</a>"
doc.root.add_element "c"
doc.root.text = "Baz"; doc.to_s # => "<a><b/>Baz<c/></a>"
doc.root.text = nil; doc.to_s # => "<a><b/><c/></a>"
//}... -
Range
# to _ json(*args) -> String (19.0) -
自身を JSON 形式の文字列に変換して返します。
...ON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
(1..5).to_json # => "{\"json_class\":\"Range\",\"a\":[1,5,false]}"
//}... -
Rational
# to _ json(*args) -> String (19.0) -
自身を JSON 形式の文字列に変換して返します。
...ータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/rational'
Rational(1, 3).to_json # => "{\"json_class\":\"Rational\",\"n\":1,\"d\":3}"
//}
@see JSON::Generator::Ge......nerator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json
に渡されます。
//emlist[例][ruby]{
require 'json/add/rational'
Rational(1, 3).to_json # => "{\"json_class\":\"Rational\",\"n\... -
Regexp
# to _ json(*args) -> String (19.0) -
自身を JSON 形式の文字列に変換して返します。
...ットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数には何の意味もありません。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json # => "{\"json_class\":\"Regexp\",\"o\":0,\"s\":\"0\\\\d{1,4}-\\......nerator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json
に渡されます。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json # => "{\"json_class\":\"Regexp\"... -
Struct
# to _ json(*args) -> String (19.0) -
自身を JSON 形式の文字列に変換して返します。
...ON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Person = Struct.new(:name, :age)
Person.new("tanaka", 29).to_json # =>... -
Thread
# set _ trace _ func(pr) -> Proc | nil (19.0) -
スレッドにトレース用ハンドラを設定します。
...用ハンドラを設定します。
nil を渡すとトレースを解除します。
設定したハンドラを返します。
//emlist[例][ruby]{
th = Thread.new do
class Trace
end
2.to_s
Thread.current.set_trace_func nil
3.to_s
end
th.set_trace_func lambda {|*arg| p arg }
th.join......"c-return", "example.rb", 5, :current, #<Binding:0x00007fc8de9673b0>, Thread]
# => ["c-call", "example.rb", 5, :set_trace_func, #<Binding:0x00007fc8de966fc8>, Thread]
//}
@param pr トレースハンドラ(Proc オブジェクト) もしくは nil
@see Thread#add_trace_func Kernel.#set_trace_func... -
Time
# to _ json(*args) -> String (19.0) -
自身を JSON 形式の文字列に変換して返します。
...ON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Time.now.to_json # => "{\"json_class\":\"Time\",\"s\":1544968675,\"n\":...