Skip to content

Instantly share code, notes, and snippets.

@jvehent
Created September 25, 2012 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvehent/3783268 to your computer and use it in GitHub Desktop.
Save jvehent/3783268 to your computer and use it in GitHub Desktop.

cookbook/whatever/libraries/ModuleA.rb

module ModuleA
  def functA()
  end
end

cookbook/whatever/libraries/ModuleB.rb

module ModuleB
  module_function
  include moduleA

  def funcB()
    funcA()
  end
end

gives [Tue, 25 Sep 2012 17:18:15 +0000] FATAL: NoMethodError: undefined method funcA' for ModuleB:Module`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment