Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Fileモジュールが存在する名前空間(別のモジュール内)でコードを書いています
そして、rubyFileクラスにアクセスする必要があります。
phpでは、これは次のように実行できます:\ File
ルビーでそれを行う方法は?
::File
::名前空間ツリーの「ルート」にアクセスして接頭辞を付けます。
::
何を求めているのかわかりませんが、モジュール内にいFooてクラスを参照している場合Bar、rubyはを検索しFoo::Barます。だけを探すにはBar、参照する必要があります::Bar(もちろん、これBarは「グローバル」スコープ内で定義する必要がありますFoo)。
Foo
Bar
Foo::Bar
::Bar
i m using passportjs nodejs and mongoose in server side to develop a web. i m trying to save using req.user.save(); it works properly. but when i m updating a field its showing