Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moduleの名前空間を明示的に記述する? #80

Open
ohta-rh opened this issue Aug 31, 2013 · 3 comments
Open

moduleの名前空間を明示的に記述する? #80

ohta-rh opened this issue Aug 31, 2013 · 3 comments

Comments

@ohta-rh
Copy link
Contributor

ohta-rh commented Aug 31, 2013

# こっち?
# urils/hoge.rb
class Utils::Hoge
end

# こっち?
# urils/hoge.rb
module Utils
  class Hoge
  end
end
@sakamoto-rh
Copy link

ライブラリなどの人に利用してもらったりする場合は下段を利用する。。
コントローラーなどの単体で簡潔するものは上段を利用する。

@kiyono
Copy link
Contributor

kiyono commented Sep 5, 2013

記載しました

@kiyono kiyono closed this as completed Sep 5, 2013
@kiyono
Copy link
Contributor

kiyono commented Sep 5, 2013

戻します

@kiyono kiyono reopened this Sep 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants