On Sat, Nov 2, 2013 at 3:27 AM, Marc Heiler <lists / ruby-forum.com> wrote:

> Hi,
>
> Yes, but you used include.
>

Yes, but Joel did it in the required file.

I want it to be auto-included on require.
>

$ ruby -e 'require "./a"; test'
Yeah!
$ cat a.rb
module Foo
  def test; puts "Yeah!" end
end

include Foo

$

Kind regards

robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/