Hacker News new | past | comments | ask | show | jobs | submit login

Is there a concept of namespace in Ruby? I did a quick search but I'm still not sure.



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: