Ruby namespace tips After made below test, then you don’t need to use Test::B.bbb in everywhere of your plugin, just use B.bbb. class A def self.aaa puts "a" end end module Test class A def self.aaa puts "aaaaaaaaaa" end end end module Test class B def self.bbb A.aaa end end end Test::B.bbb # => aaaaaaaaaa A.aaa # => a Published: April 27 2012 category: tags: Ruby 12 Related Posts • iOS ARC trap • Check how many client connected to your internet sharing on your mac • Prevent iCloud backup your downloadable content on iOS • Use bower in rails • jquery page scroll animation • How to solve the error: no decode delegate for this image format • Capistrano with bundler • New xcode uncomfortable things • Problem with carrierwave when you have two servers • use ActiveSupport::Configurable to store config options Tweet Please enable JavaScript to view the comments powered by Disqus. blog comments powered by Disqus