2228件ヒット
[1-100件を表示]
(0.141秒)
ライブラリ
- ビルトイン (213)
- benchmark (11)
- csv (121)
- date (11)
- digest (22)
- fiber (8)
- fiddle (33)
- fileutils (12)
- gdbm (22)
-
io
/ console (33) -
irb
/ extend-command (44) -
irb
/ inspector (11) - json (506)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / time (11) - kconv (11)
- matrix (110)
-
net
/ http (22) -
net
/ pop (44) -
net
/ smtp (14) - nkf (11)
- objspace (44)
- open-uri (8)
- openssl (88)
- optparse (33)
- ostruct (9)
- pathname (11)
- pp (15)
- prettyprint (11)
- prime (11)
- pstore (11)
- psych (6)
-
ripper
/ sexp (22) -
rubygems
/ requirement (11) - sdbm (22)
- set (44)
- shell (12)
-
shell
/ filter (12) - shellwords (11)
- socket (110)
- stringio (55)
- strscan (22)
- tempfile (22)
-
test
/ unit (1) - thread (8)
- thwait (12)
- timeout (19)
- tmpdir (22)
- uri (22)
-
webrick
/ log (11) - zlib (77)
クラス
- Addrinfo (22)
- Array (19)
- BigDecimal (11)
- Binding (8)
- CSV (44)
-
CSV
:: FieldInfo (33) -
CSV
:: Row (33) -
CSV
:: Table (11) - Complex (11)
- Date (11)
- DateTime (22)
-
Digest
:: Base (11) - Dir (44)
- Enumerator (11)
- Exception (11)
- Fiber (11)
-
Fiddle
:: Pointer (11) - GDBM (22)
-
Gem
:: Requirement (11) - IO (33)
-
IRB
:: Inspector (11) -
JSON
:: Parser (22) -
JSON
:: State (176) - Matrix (110)
-
Net
:: HTTP (11) -
Net
:: HTTPGenericRequest (11) -
Net
:: POP3 (11) -
Net
:: POPMail (33) -
Net
:: SMTP (14) - Object (40)
-
OpenSSL
:: ASN1 :: ObjectId (88) - OpenStruct (9)
- OptionParser (22)
- PP (11)
- PStore (11)
- Pathname (11)
- PrettyPrint (11)
- Prime (11)
- Random (22)
- Range (23)
- Rational (11)
- Regexp (11)
- Ripper (22)
- SDBM (22)
- Set (44)
- Shell (12)
-
Shell
:: Filter (12) - Socket (33)
- String (11)
- StringIO (55)
- StringScanner (22)
- Struct (11)
- Tempfile (22)
- Thread (11)
-
Thread
:: Queue (11) -
Thread
:: SizedQueue (33) - ThreadsWait (12)
- Time (11)
- UNIXServer (22)
- UNIXSocket (33)
-
WEBrick
:: BasicLog (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipReader (22) -
Zlib
:: GzipWriter (44)
モジュール
- Benchmark (11)
- Enumerable (22)
- Fiddle (22)
- FileUtils (12)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (22) - JSON (154)
-
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 (22) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kconv (11)
- Kernel (52)
- ObjectSpace (44)
-
OptionParser
:: Arguable (11) - Psych (6)
- Shellwords (11)
-
Test
:: Unit (1) - Timeout (19)
- URI (22)
キーワード
- << (11)
- DATA (11)
- Digest (11)
- JSON (11)
- NKF (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) - [] (33)
- adjugate (11)
- all (11)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
array
_ nl (11) - bigdecimal (11)
-
bigdecimal
/ jacobian (11) - bind (11)
- bmbm (11)
-
body
_ stream (11) - cd (6)
- chdir (6)
-
check
_ circular? (11) -
cofactor
_ expansion (11) - column (22)
- component (11)
- configure (11)
- conj (11)
- conjugate (11)
-
connect
_ from (11) - convert (22)
- cooked (11)
- create (11)
-
create
_ id (11) -
create
_ id= (11) -
def
_ extend _ command (22) -
def
_ inspector (11) - delete (33)
- deq (11)
- dig (9)
- disjoint? (11)
- divide (22)
- dlunwrap (11)
- dlwrap (11)
- dump (11)
- each (11)
- element (11)
- entries (17)
-
fast
_ generate (11) -
fast
_ unparse (11) - fetch (22)
- field (11)
- file (11)
- flush (11)
- format (11)
-
from
_ state (11) - generate (11)
-
handle
_ interrupt (11) - header (11)
- indent (11)
- indent= (11)
- index (11)
-
install
_ extend _ commands (22) - instance (11)
- irb (8)
- isjis (11)
- jisx0301 (11)
- jj (11)
- join (28)
-
join
_ nowait (6) -
json
_ create (11) -
laplace
_ expansion (11) - line (11)
- ln (11)
- load (11)
-
long
_ name (11) - mail (11)
-
max
_ nesting (11) -
max
_ nesting= (11) -
memsize
_ of (11) - merge (11)
- mktmpdir (22)
-
net
/ imap (11) - new (66)
- noecho (11)
-
object
_ nl (11) -
object
_ nl= (11) - oid (11)
- open (96)
- pack (19)
- pack テンプレート文字列 (11)
- params (11)
- parse (33)
- parse! (11)
- pop (22)
- pp (11)
-
pretty
_ generate (11) -
pretty
_ print (4) -
pretty
_ unparse (11) - print (11)
- printf (11)
- pushd (6)
- pushdir (6)
- putc (11)
- puts (11)
- rand (22)
- raw (11)
-
rb
_ f _ require (11) -
recv
_ io (11) - register (11)
- reject (22)
- reject! (22)
- restore (11)
-
ruby 1
. 6 feature (11) -
safe
_ load (6) -
scan
_ full (11) -
search
_ full (11) -
setup
_ argv (1) - sexp (11)
-
sexp
_ raw (11) - shelljoin (11)
- shift (22)
-
short
_ name (11) - sn (11)
- source (11)
- space (11)
- space= (11)
-
space
_ before (11) -
space
_ before= (11) - start (36)
- tcp (11)
-
test
/ unit (1) - timeout (19)
-
to
_ a (17) -
to
_ json (209) -
to
_ json _ raw _ object (11) -
to
_ value (11) -
trace
_ object _ allocations (11) - transact (6)
- transaction (11)
- transfer (11)
-
unconverted
_ fields? (11) - unix (11)
-
unix
_ server _ socket (11) - unpack (11)
- unparse (11)
-
with
_ index (11) - wrap (22)
- write (11)
-
yield
_ self (14) - | (6)
- 制御構造 (8)
検索結果
先頭5件
- IRB
:: ExtendCommandBundle . install _ extend _ commands -> object - IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object - IRB
:: ContextExtender . install _ extend _ commands -> object - IO
# raw(min: 1 , time: 0 , intr: false) {|io| . . . } -> object - IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object
-
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (26212.0) -
定義済みの拡張を読み込みます。
...
irb で以下のメソッドが利用できるようになります。(それぞれ 1 つだけ抜粋)
* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb......_kill
* irb_help
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ExtendCommandBundle.install_extend_commands... -
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (26212.0) -
新しい実行結果の出力方式を定義します。
...@param key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。
@param arg ブロックを指定する場合には、inspect_mode の初......じめ require が必要な場合
などに、proc { require "foo" } といった指定を行います。
ブロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。
例.
# .irbrc
IRB::Inspecto......r.def_inspector([:test]){ |v| v.to_s * 2 }
$ irb --inspect test
irb(main):001:0> :abc # => abcabc
@see lib:irb#inspect_mode... -
IRB
:: ContextExtender . install _ extend _ commands -> object (26206.0) -
定義済みの拡張を読み込みます。
...みます。
IRB::Context で以下のメソッドが利用できるようになります。
* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ContextExt... -
IO
# raw(min: 1 , time: 0 , intr: false) {|io| . . . } -> object (23306.0) -
raw モード、行編集を無効にして指定されたブロックを評価します。
...。
@param min 入力操作 (read) 時に受信したい最小のバイト数を指定します。min 値以上のバイト数を受信するまで、操作がブロッキングされます。
@param time タイムアウトするまでの秒数を指定します。time よりも min が優先さ......中止 (quit) 、停止 (suspend) の各シグナルを生成する制御文字が有効になります。端末の制御については、 termios のマニュアル:https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html を参照してください。
@raise LocalJumpError ブ......なかった場合に発生します。
@raise ArgumentError intr に true または false 以外の値を指定した場合に発生します。
以下の例では、標準入力からエコーバックなしで文字列を一行読み込みます。
require "io/console"
STDIN.raw(&:gets)... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (23306.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
...
irb に cmd_name で指定したメソッドが実行できるように拡張します。
@param cmd_name メソッド名を Symbol か文字列で指定します。
cmd_class で指定するクラスの execute メソッドとして定
義してある必要があ......れたクラス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand 以下で定義
する必要があります。
@param load_file 指定したメソッドが定義されたファイ......的に require されます。
@param aliases cmd_name の別名を Symbol とフラグの配列で指定しま
す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_... -
IO
# cooked {|io| . . . } -> object (23206.0) -
cooked モードを有効にして指定されたブロックを評価します。
...す。ブロックを評価した結果を返します。
@raise LocalJumpError ブロックを指定しなかった場合に発生します。
以下の例では、標準入力からエコーバック付きで文字列を一行読み込みます。
require "io/console"
STDIN.cooked(&:gets)... -
IO
# noecho {|io| . . . } -> object (23206.0) -
文字入力時のエコーバックを無効に設定してブロックを評価します。
...す。ブロックを評価した結果を返します。
以下の例では、標準入力からエコーバックなしで文字列を一行読み込みます。
require "io/console"
STDIN.noecho(&:gets)
@raise LocalJumpError ブロックを指定しなかった場合に発生します。... -
IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object (23206.0) -
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
...
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張
します。
@param cmd_name メソッド名を Symbol で指定します。
IRB::Context クラスのインスタンスメソッドとして定
義してある必要がありま......す。
@param load_file cmd_name で指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。
@param aliases cmd_name の別名を Symbol で指定します。複数指定する事ができます。... -
Kconv
. # isjis(str) -> bool (18306.0) -
文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
...文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
@param str 判定対象の文字列
@see String#isjis
//emlist[例][ruby]{
require 'kconv'
euc_str = "\
\xa5\xaa\xa5\xd6\xa5\xb8\xa5\xa7\xa5\xaf\xa5\xc8\xbb\xd8\xb8\xfe\
\xa5\xd7\xa5\xed\xa5\xb0......force_encoding('EUC-JP')
jis_str = "\
\x1b\x24\x42\x25\x2a\x25\x56\x25\x38\x25\x27\x25\x2f\x25\x48\x3b\x58\x38\x7e\
\x25\x57\x25\x6d\x25\x30\x25\x69\x25\x5f\x25\x73\x25\x30\x38\x40\x38\x6c\x1b\x28\x42\
\x52\x75\x62\x79".force_encoding('ISO-2022-JP')
euc_str.isjis # => false
jis_str.isjis # => tr... -
Kernel
# j(*objects) -> nil (18213.0) -
与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
...与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
@param objects JSON 形式で出力したいオブジェクトを指定します。
//emlist[例][ruby]{
require "json"
j([1,2,{"name" => "tanaka","age" => 19}])
# => [1,2,{"name":"tanaka","...