DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Alexey has posted 28 posts at DZone. View Full User Profile

Ruby: Modules For Grouping Methods Together

04.21.2010
| 1608 views |
  • submit to reddit
        
  module M; 
    module_function; 
    def f; :value end 
  end

  M.f