title: Cross class invoke in Thor
body: <p>I am trying to invoke thor class from another thor class.</p>
  
  <pre><code>class Foo &lt; Thor
    desc "hello", "some description"
    def hello
      puts "Hello from Foo class"
    end
  end
  
  class Bar &lt; Thor
  desc "hello", "some description"
    def hello
      puts "Hello from Bar class"
      # ==&gt; HERE I WANT TO CALL HELLO FROM FOO CLASS &lt;==
    end
  end
  </code></pre>
  
  <p>There is invoke method but to call methods inside same class. Is there a way to do this cross-class? I am assuming the proper way would use Thor framework.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am trying to have one class that delegates task to other classes. For example you call <code>foo bar list</code>, and main class Foo delegates to Bar class with method list, or <code>foo module find 1</code>, and deligates to Module class with method find and arguments 1. </p>