696件ヒット
[201-300件を表示]
(0.049秒)
別のキーワード
クラス
- Array (24)
- BigDecimal (12)
- CSV (12)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Complex (12)
- Data (6)
- Dir (12)
- Encoding (12)
- Exception (12)
- FalseClass (24)
- Float (24)
- Hash (36)
- Integer (24)
- MatchData (12)
- Matrix (12)
- Method (24)
- Module (51)
- Object (36)
- Proc (24)
- Range (24)
- Rational (24)
- Regexp (24)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (12) - Set (20)
- String (24)
- StringScanner (12)
- Struct (24)
- Thread (42)
-
Thread
:: Backtrace :: Location (12) - Time (6)
- TracePoint (12)
- TrueClass (12)
- UnboundMethod (36)
-
WIN32OLE
_ EVENT (12)
キーワード
- % (12)
- [] (12)
-
bind
_ call (12) -
const
_ added (3) -
const
_ missing (12) -
default
_ proc (12) - handler= (12)
-
initialize
_ copy (12) - name (12)
- name= (10)
-
pretty
_ print (12) -
to
_ s (175)
検索結果
先頭5件
-
CSV
:: Row # inspect -> String (18120.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 (18120.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>"
//}... -
Data
# inspect -> String (18120.0) -
self の内容を人間に読みやすい文字列にして返します。
...の内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
Customer = Data.define(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<data Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=1234... -
Dir
# inspect -> String (18120.0) -
self の情報を人間に読みやすい文字列にして返します。
...self の情報を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
Dir.open("/") { |d| d.inspect } # => "#<Dir:/>"
//}... -
Exception
# inspect -> String (18120.0) -
self のクラス名と message を文字列にして返します。
...self のクラス名と message を文字列にして返します。
//emlist[例][ruby]{
begin
raise "exception"
rescue
p $!.inspect # => "#<RuntimeError: exception>"
end
//}... -
Hash
# inspect -> String (18120.0) -
ハッシュの内容を人間に読みやすい文字列にして返します。
...ハッシュの内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
h = { "c" => 300, "a" => 100, "d" => 400 }
h.inspect # => "{\"c\"=>300, \"a\"=>100, \"d\"=>400}"
//}... -
Matrix
# inspect -> String (18120.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]]"
//}... -
Regexp
# inspect -> String (18120.0) -
Regexp#to_s より自然な文字列を返します。
...Regexp#to_s より自然な文字列を返します。
//emlist[例][ruby]{
p /^ugou.*?/i.to_s # => "(?i-mx:^ugou.*?)"
p /^ugou.*?/i.inspect # => "/^ugou.*?/i"
//}
@see Regexp#to_s... -
Set
# inspect -> String (18120.0) -
人間の読みやすい形に表現した文字列を返します。
...人間の読みやすい形に表現した文字列を返します。
//emlist[][ruby]{
require 'set'
puts Set.new(['element1', 'element2']).inspect
# => #<Set: {"element1", "element2"}>
//}......人間の読みやすい形に表現した文字列を返します。
//emlist[][ruby]{
puts Set.new(['element1', 'element2']).inspect
# => #<Set: {"element1", "element2"}>
//}... -
Struct
# inspect -> String (18120.0) -
self の内容を人間に読みやすい文字列にして返します。
...uct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12...