248件ヒット
[1-100件を表示]
(0.024秒)
別のキーワード
種類
- インスタンスメソッド (108)
- 文書 (50)
- ライブラリ (48)
- 特異メソッド (42)
ライブラリ
- bigdecimal (12)
- csv (36)
-
irb
/ inspector (24) - matrix (12)
- pp (4)
- set (14)
- socket (12)
- strscan (12)
- thwait (24)
クラス
- Addrinfo (12)
- BigDecimal (12)
- CSV (12)
-
CSV
:: Row (12) -
CSV
:: Table (12) -
IRB
:: Inspector (12) - Matrix (12)
- Object (4)
- Set (14)
- StringScanner (12)
- ThreadsWait (24)
モジュール
- IRB (12)
キーワード
- Inspector (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
all
_ waits (18) - cgi (12)
-
def
_ inspector (12) -
drb
/ gw (12) -
inspect
_ sockaddr (12) - irb (12)
-
irb
/ completion (12) - new (6)
-
pretty
_ print (4) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
to
_ s (5)
検索結果
先頭5件
-
StringScanner
# inspect -> String (18131.0) -
StringScannerオブジェクトを表す文字列を返します。
...ポインタを表します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.inspect # => "#<StringScanner 0/11 @ \"test ...\">"
s.scan(/\w+/) # => "test"
s.inspect # => "#<StringScanner 4/......11 \"test\" @ \" stri...\">"
s.scan(/\s+/) # => " "
s.inspect # => "#<StringScanner 5/11 \"test \" @ \"strin...\">"
s.scan(/\w+/) # => "string"
s.inspect # => "#<StringScanner fin>"
//}... -
BigDecimal
# inspect -> String (18113.0) -
BigDecimal オブジェクトを表す文字列を返します。
...BigDecimal オブジェクトを表す文字列を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1234.5678").inspect
# => "0.12345678e4"
//}... -
CSV
# inspect -> String (18113.0) -
ASCII 互換文字列で自身の情報を表したものを返します。
...ASCII 互換文字列で自身の情報を表したものを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.inspect # => "<#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
//}... -
CSV
:: Row # inspect -> String (18113.0) -
ASCII 互換であるエンコーディングの文字列で自身の情報を返します。
...ASCII 互換であるエンコーディングの文字列で自身の情報を返します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header1"], [1, 2, 3])
row.inspect # => "#<CSV::Row \"header1\":1 \"header2\":2 \"header1\":3>"
//}... -
CSV
:: Table # inspect -> String (18113.0) -
モードとサイズを US-ASCII な文字列で返します。
...モードとサイズを US-ASCII な文字列で返します。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.inspect # => "#<CSV::Table mode:col_or_row row_count:2>"
//}... -
Matrix
# inspect -> String (18113.0) -
自分自身を見やすい形式に文字列化し、その文字列を返します。
...自分自身を見やすい形式に文字列化し、その文字列を返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [3, 4.5]
m = Matrix[a1, a2]
p m.inspect # => "Matrix[[1, 2], [3, 4.5]]"
//}... -
Set
# inspect -> String (18113.0) -
人間の読みやすい形に表現した文字列を返します。
...人間の読みやすい形に表現した文字列を返します。
//emlist[][ruby]{
require 'set'
puts Set.new(['element1', 'element2']).inspect
# => #<Set: {"element1", "element2"}>
//}... -
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (9142.0) -
新しい実行結果の出力方式を定義します。
...@param key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。
@param arg ブロックを指定する場合には、inspect_mode の初期......め require が必要な場合
などに、proc { require "foo" } といった指定を行います。
ブロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。
例.
# .irbrc
IRB::Inspector.d......ef_inspector([:test]){ |v| v.to_s * 2 }
$ irb --inspect test
irb(main):001:0> :abc # => abcabc
@see lib:irb#inspect_mode... -
IRB
. Inspector(inspect , init = nil) -> IRB :: Inspector (6325.0) -
IRB::Inspector オブジェクトを生成します。
...IRB::Inspector オブジェクトを生成します。
@param inspect 実行結果の出力のための手続きオブジェクトを指定します。
@param init inspect_mode の初期化のための手続きオブジェクトを指定します。
あらかじめ require が必要......な場合などに、proc { require "foo" }
といった指定を行います。...