Is it possible to include multiple modules in a single “include” statement?

Is there a shorter way to do the following?

class MyClass
  include MyModule1
  include MyModule2
  include MyModule3
end

Answers


Try following

class MyClass
  include MyModule1, MyModule2, MyModule3
end

to get the same ancestry order you need to reverse the order in the one line version

class MyClass
  include MyModule3, MyModule2, MyModule1
end

Need Your Help

A good/modern template for ASP.NET MVC 2

asp.net css asp.net-mvc-2

I'm starting a new ASP.NET MVC 2 project, but unfortunately I'm a noob dev. Can you recommend a template I can use for my web site? It would be nice if the CSS supports stuff like 3 columns, 3 rows...

Dynamic-memory-allocation of an array within a struct,

c struct dynamic-memory-allocation array-initialization

I don't understand how to Dynamic allocate memory for an array of structs within another struct. As in, here is my problem... I have a project.c file that contains the main, I have another polynomi...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.