module A  def methodInA    # do stuff    methodInB    # do stuff  endendmodule B  def methodInB    puts this is a B method!  endendclass C  extend A  extend B  def initialize    methodInA  endendc = new CI'm not feeling good about this.  Is this a good idea in general?  Any pointers as to where I can learn the best pattern for this?
Calling methods of another module from a module, from a class extending both?
ruby
+1 for ActiveSupport::Concern.As to the best practices, i'd recommend if possible to clearly state dependency of module A on module B :module A  include B  def method_in_a    method_in_b  endendclass C  include Aendor : module A  def self.included( base )    base.send :include, B  end  def method_in_a    method_in_b  endendclass C  include Aend...and that's why ActiveSupport::Concern is cool, because it helps managing such dependencies. 