Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: