--Apple-Mail=_E7AF173A-1E5C-4086-BC60-E3FA41AFA2FD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hello,

On 1 =CE=9D=CE=BF=CE=B5 2013, at 19:42 , Marc Heiler =
<lists / ruby-forum.com> wrote:

> Hi.
>=20
> I have this module:
>=20
> module Foo
>  def test
>    puts 'Hi from test() from module Foo.'
>  end
> end
>=20
> I put it into file 'foo.rb'
>=20
> I require this file.
>=20
> Now, in order to make use of test() method, I would do:
>=20
> include Foo
> test
>=20
> This works. Is there a way to automatically do "include Foo" upon
> require?

You mean like a keybord shortcut on $editor (vim?) or something?

> I would like to have this as I could eliminate a lot of lines of =
include
> code.
>=20
> --=20
> Posted via http://www.ruby-forum.com/.


Panagiotis (atmosx) Atmatzidis

email:	atma / convalesco.org
URL:	http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5
--
The wise man said: "Never argue with an idiot. They bring you down to =
their level and beat you with experience."


--Apple-Mail=_E7AF173A-1E5C-4086-BC60-E3FA41AFA2FD
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJSdB4vAAoJEPy01a8ae/7FoCUP/Rcmnn803qmxSyh6YiZSOZUB
AcxVZ0pJFfwVPhTw4huvQCiQ0YwSBqU1YRolrzKH/KAwlxQjMm5aii1NVYB+RAs2
0O5ye3iALr8fK85dQubwfvQR8PCjDXn9vVucladXId/xqaKmfGDymUgvss5Q5HIe
BspxTKJ63mDpLpkUWZFYnPtW7v+w6baSdcjfKIrYRv8G9G/9/+y9BaRw9MnsW6SP
xQXzGM9dc7QnkMRek+pXPNYIbr8ftrAcGScIqj0yKP787D4GcXXGG/CvyumiQnM9
CeqmOFE3iqib6lMSWVH9VKIWE/LU9oELC/ITlB9L6rTmHuMrlCHI4w77VOOWP8Cu
AtKI6tIJUVVHDcdqWA8UPcVcQMfytxnBPzib7VQd8+naWS5/KELKFKuP17o8X7f2
PWwOifi63oX3f/mTvL9vAQCtYqUM7e9Pc7YWUeUoAoHwnHbO7lot7g/ngIIk58Jf
J3cwnAN4FDxnekS6GmG1Sbzcs8BkhgAbfaXZ4U8rNaXQFNpJhb6CwALtX0uF6QkT
rp89cov+cWuQof8m2Nq4A8LWO4npTkiNMapm7Y+PUi2sLWWCFO96ETdT5C49r6Li
PgZ0cfd37thTP/4LRyXgdMbx+sViGcLkN2eBKvjxf7uL8Uu/KQUWz9axM7hiRrni
NJpcF6bhSv/HyEmSndeZ
=uYhz
-----END PGP SIGNATURE-----

--Apple-Mail=_E7AF173A-1E5C-4086-BC60-E3FA41AFA2FD--