るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.049秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:to_s[x] > 種類:特異メソッド[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

クラス

オブジェクト

キーワード

検索結果

ENV.to_s -> String (18120.0)

環境変数を文字列化します。 Hash#to_s と同じように動作します。

...環境変数を文字列化します。 Hash#to_s と同じように動作します。...

main.to_s -> "main" (15104.0)

"main" を返します。

"main" を返します。

File.lchmod(mode, *filename) -> Integer (15.0)

File.chmod と同様ですが、シンボリックリンクに関してリンクそのものの モードを変更します。

...生します。

//emlist[例][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink")
File.lstat("testlink").ftype # => "link"
File.lchmod(0744, "testlink")
File.stat("testlink").mode.to_s(8) # => "100644"
File.lstat("testlink").mode.to_s(8) # => "120744"
//}...

Range.new(first, last, exclude_end = false) -> Range (15.0)

first から last までの範囲オブジェクトを生成して返しま す。

...のオブジェクトの場合][ruby]{
MyInteger = Struct.new(:value) do
def succ
self.class.new(value + 1)
end

def <=>(other)
value <=> other.value
end

def to_s
value.to_s
end
end
Range.new(MyInteger.new(1), MyInteger.new(3)).each {|i| puts i }
# => 1
# 2
# 3
//}...

Symbol.all_symbols -> [Symbol] (15.0)

定義済みの全てのシンボルオブジェクトの配列を返します。

...nd

p Symbol.all_symbols.select{|sym|sym.to_s.include? 'make'}
#=> [:make_1, :make_2]

re = #確実に生成されるように代入操作を行う
:make_1,
:'make_2',
:"#{number}",
'make_4'.intern

p Symbol.all_symbols.select{|sym|sym.to_s.include? 'make'}
#=> [:make_1, :make_2,...

絞り込み条件を変える

main.inspect -> "main" (4.0)

"main" を返します。

"main" を返します。