60件ヒット
[1-60件を表示]
(0.051秒)
クラス
- Pathname (36)
-
Process
:: Status (12)
モジュール
検索結果
先頭5件
-
Process
:: Status # to _ s -> String (21118.0) -
to_i.to_s と同じです。
...to_i.to_s と同じです。... -
Pathname
# stat -> File :: Stat (18241.0) -
File.stat(self.to_s) と同じです。
...File.stat(self.to_s) と同じです。
@see File.stat... -
Pathname
# lstat -> File :: Stat (6218.0) -
File.lstat(self.to_s) と同じです。
...File.lstat(self.to_s) と同じです。
@see File.lstat... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (117.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name... -
Pathname
# chown(owner , group) -> Integer (29.0) -
File.chown(owner, group, self.to_s) と同じです。
...ner, group, self.to_s) と同じです。
@param owner オーナーを指定します。
@param group グループを指定します。
//emlist[例][ruby]{
require 'pathname'
Pathname('testfile').stat.uid # => 501
Pathname('testfile').chown(502, 12)
Pathname('testfile').stat.uid # => 50...