るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.079秒)

別のキーワード

  1. fiddle build_ruby_platform
  2. rbconfig ruby
  3. fiddle ruby_free
  4. rubygems/defaults ruby_engine
  5. rake ruby

ライブラリ

クラス

検索結果

Pathname#to_s -> String (21233.0)

パス名を文字列で返します。

...パス名を文字列で返します。


//emlist[例][ruby]{
require
'pathname'

path
= Pathname.new("/tmp/hogehoge")
File.open(path)
//}...

Pathname#binread(*args) -> String | nil (3136.0)

IO.binread(self.to_s, *args)と同じです。

...O.binread(self.to_s, *args)と同じです。

//emlist[例][ruby]{
require
"pathname"

path
name = Pathname("testfile")
path
name.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
path
name.binread(20) # => "This is line one\nThi"
path
name.binread(20...