RemoteFile
パス名から継承するものがあります
class RemoteFile < Pathname
end
リモートファイルを作成し、その親を取得します
irb> RemoteFile.new('.')
=> #<RemoteFile:.>
irb> RemoteFile.new('.').parent
=> #<Pathname:..>
Pathnameで12個のメソッドにモンキーパッチを適用する以外に、PathnameにRemoteFilesを返すようにする方法はありますか?Pathnameがタイプのオブジェクトを返した場合、より適切に機能しませんself.class.new
か?