Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steelaz
on Nov 10, 2011
|
parent
|
context
|
favorite
| on:
Confident Code
Is there a concept of namespace in Ruby? I did a quick search but I'm still not sure.
Confusion
on Nov 10, 2011
[–]
Certainly: modules and classes serve as namespaces
module Foo class Bar end end
Bar is now only accessible as Foo::Bar. You could have a Baz::Bar class that is entirely separate from this Bar.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: