1153件ヒット
[1-100件を表示]
(0.145秒)
別のキーワード
種類
- インスタンスメソッド (766)
- 特異メソッド (290)
- モジュール関数 (55)
- 文書 (30)
- ライブラリ (12)
ライブラリ
- ビルトイン (133)
- csv (121)
- fiber (8)
- fiddle (11)
- json (319)
-
json
/ add / struct (11) -
net
/ http (22) -
net
/ pop (11) -
net
/ smtp (14) - objspace (33)
- openssl (88)
- optparse (22)
- ostruct (9)
- prettyprint (11)
- prime (11)
- pstore (11)
-
ripper
/ sexp (22) - set (22)
- shell (12)
-
shell
/ filter (12) - socket (55)
- stringio (55)
- strscan (22)
- tempfile (12)
- thread (8)
- thwait (12)
-
webrick
/ log (11) - zlib (33)
クラス
- Array (16)
- CSV (44)
-
CSV
:: FieldInfo (33) -
CSV
:: Row (33) -
CSV
:: Table (11) - Dir (22)
- Enumerator (11)
- Fiber (11)
-
Fiddle
:: Pointer (11) -
JSON
:: Parser (22) -
JSON
:: State (165) -
Net
:: HTTP (11) -
Net
:: HTTPGenericRequest (11) -
Net
:: POP3 (11) -
Net
:: SMTP (14) -
OpenSSL
:: ASN1 :: ObjectId (88) - OpenStruct (9)
- OptionParser (22)
- PStore (11)
- PrettyPrint (11)
- Prime (11)
- Random (22)
- Range (12)
- Ripper (22)
- Set (22)
- Shell (12)
-
Shell
:: Filter (12) - Socket (11)
- StringIO (55)
- StringScanner (22)
- Struct (11)
- Tempfile (12)
- Thread (11)
-
Thread
:: Queue (11) -
Thread
:: SizedQueue (33) - ThreadsWait (12)
- UNIXServer (22)
- UNIXSocket (22)
-
WEBrick
:: BasicLog (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipReader (11) -
Zlib
:: GzipWriter (11)
モジュール
- JSON (33)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - ObjectSpace (33)
キーワード
- << (11)
- Ruby用語集 (11)
- [] (11)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
array
_ nl (11) -
body
_ stream (11) -
check
_ circular? (11) - configure (11)
- convert (22)
- create (1)
-
create
_ id (11) - delete (22)
- deq (11)
- dig (9)
- divide (22)
- each (11)
- entries (6)
- field (11)
- format (11)
- generate (11)
-
handle
_ interrupt (11) - header (11)
- indent (11)
- indent= (11)
- index (11)
- instance (11)
- join (6)
-
join
_ nowait (6) - line (11)
- ln (11)
-
long
_ name (11) -
max
_ nesting (11) -
max
_ nesting= (11) - merge (11)
-
net
/ imap (11) -
object
_ nl (11) -
object
_ nl= (11) - oid (11)
- open (88)
- pack (16)
- params (11)
- pop (11)
- print (11)
- printf (11)
- pushd (6)
- pushdir (6)
- puts (11)
- rand (22)
- register (11)
- reject (22)
-
ruby 1
. 6 feature (11) -
scan
_ full (11) -
search
_ full (11) - sexp (11)
-
sexp
_ raw (11) - shift (22)
-
short
_ name (11) - sn (11)
- source (11)
- space (11)
- space= (11)
-
space
_ before (11) -
space
_ before= (11) - start (36)
-
test
/ unit (1) -
to
_ a (6) -
to
_ json (110) -
to
_ value (11) -
trace
_ object _ allocations (11) - transact (6)
- transaction (11)
- transfer (11)
-
unconverted
_ fields? (11) - unix (11)
- unparse (11)
-
with
_ index (11) - write (11)
- | (6)
- 制御構造 (8)
検索結果
先頭5件
-
OpenSSL
:: ASN1 :: ObjectId . new(value) -> OpenSSL :: ASN1 :: ObjectId (24320.0) -
ASN.1 のオブジェクト識別子を表わす OpenSSL::ASN1::ObjectId の オブジェクトを生成します。
...SN1::ObjectId の
オブジェクトを生成します。
value としては、ドット区切り数字表記、short name、long name の文字列の
をいずれかを渡します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::OBJECT......:
require "openssl"
include OpenSSL
p ASN1::ObjectId.new("1.2.840.10040.4.3").long_name # => "dsaWithSHA1"
p ASN1::ObjectId.new("dsaWithSHA1").oid # => "1.2.840.10040.4.3"
@param value ASN.1 オブジェクト識別子を表す文字列
@param tag タグ番号
@param tagging......タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
OpenSSL
:: ASN1 :: ObjectId . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: ObjectId (24320.0) -
ASN.1 のオブジェクト識別子を表わす OpenSSL::ASN1::ObjectId の オブジェクトを生成します。
...SN1::ObjectId の
オブジェクトを生成します。
value としては、ドット区切り数字表記、short name、long name の文字列の
をいずれかを渡します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::OBJECT......:
require "openssl"
include OpenSSL
p ASN1::ObjectId.new("1.2.840.10040.4.3").long_name # => "dsaWithSHA1"
p ASN1::ObjectId.new("dsaWithSHA1").oid # => "1.2.840.10040.4.3"
@param value ASN.1 オブジェクト識別子を表す文字列
@param tag タグ番号
@param tagging......タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
JSON
:: State . new(options = {}) -> JSON :: State (21331.0) -
自身を初期化します。
...を初期化します。
@param options ハッシュを指定します。
指定可能なオプションは以下の通りです。
: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
JSON 形式の文字列のトーク......:ascii_only
真を指定した場合、ASCII 文字列のみを用いて JSON 形式の文字列を生成します。
デフォルトは偽です。
: :buffer_initial_length
sets the initial length of the generator's internal buffer.
//emlist[例 Hash を指定][ruby]{
require "json"
json_s......tate = JSON::State.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # => JSON::Ext::Generator::Sta... -
JSON
:: Parser . new(source , options => {}) -> JSON :: Parser (21325.0) -
パーサを初期化します。
...: :max_nesting
データ構造のネストの深さの最大値を指定します。デフォルトは 19 です。
チェックを無効にするにはゼロまたは偽を指定してください。
: :allow_nan
真を指定すると 4627 を無視して NaN, Infinity, -Infinity をパー......eate_additions
偽を指定するとマッチするクラスや ID があっても付加情報を生成しません。デフォルトは真です。
: :object_class
JSON のオブジェクトを変換するクラスを指定します。デフォルトは Hash です。
: :array_class
JSON の......aram options オプションを指定するためのハッシュです。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# =>... -
UNIXServer
. new(path) {|sock| . . . } -> object (21214.0) -
path で指定したパス名を用いて接続を受け付けるソケット を作成します。
...クを呼びだし、
ブロック終了時にソケットを閉じます。この場合には
ブロックの評価値を返り値として返します。
@param path 接続を受け付けるパス名文字列
require 'socket'
serv = UNIXServer.new("/tmp/sock")
s = serv.accept
p s.read... -
UNIXSocket
. new(path) {|sock| . . . } -> object (21214.0) -
path で指定したパス名を用いてソケットを接続します。
...してそのブロックを呼びだし、
ブロック終了時にソケットを閉じます。この場合には
ブロックの評価値を返り値として返します。
@param path 接続先のパス名文字列
require 'socket'
s = UNIXSocket.new("/tmp/sock")
s.send("hello", 0)... -
ThreadsWait
# join _ nowait(*threads) -> () (15224.0) -
終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。 しかし、実際には終了をまちません。
...つスレッドに指定されたthreadsを加えます。
require 'thwait'
threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new
p thall.threads #=> []
thall.join_nowait(*threads)
p thall.threads #=> [#<Thread:0x21638 sleep>,... -
ObjectSpace
. # trace _ object _ allocations { . . . } (15218.0) -
与えられたブロック内でオブジェクトのトレースを行います。
...のトレースを行います。
//emlist[例][ruby]{
require 'objspace'
class C
include ObjectSpace
def foo
trace_object_allocations do
obj = Object.new
p "#{allocation_sourcefile(obj)}:#{allocation_sourceline(obj)}"
end
end
end
C.new.foo #=> "objtrace.rb:8"
//}... -
ThreadsWait
# join(*threads) -> () (12224.0) -
終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。
...待つスレッドに指定されたthreadsを加えます。
require 'thwait'
threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new
p thall.threads #=> []
thall.join(*threads)
p thall.threads
#=> [#<Thread:0x216ec dead>, #<T... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (12212.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//}...