From: Chris Hulan Date: 2012-12-07T03:55:41+09:00 Subject: Re: Organizing code to avoid name space collision --e89a8ff1c2e82e21b704d033a575 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable see http://www.ruby-lang.org/en/community/mailing-lists/ you send 'unsubscribe' to ruby-talk-ctl@ruby-lang.org On Thu, Dec 6, 2012 at 1:36 PM, M=C3=A1rio Luan = wrote: > @Sergey , > > You may mark *ruby-talk@ruby-lang.org* as spam on your email service. > > Cheers! > > > *M=C3=A1rio Luan* > *Linkedin* > *facebook.com/mariosouzaluan * > *@mario_luan * > *TIM (11) 59506744* > *OI (11) 98033-5954* > > > > 2012/12/6 Sergey Zhikharev > >> Hello, friend >> >> Excuse me please, how can I unsubscribe from it? >> >> -- >> With best regards, >> Sergey Zhikharev >> "System Telecom" >> tel.: +380 44 491-21-08 >> mob.: +380 67 500-60-40 >> >> -- >> =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, >> =D0=96=D0=B8=D1=85=D0=B0=D1=80=D0=B5=D0=B2 =D0=A1=D0=B5=D1=80=D0=B3=D0= =B5=D0=B9, >> "=D0=A1=D0=98=D0=A1=D0=A2=D0=95=D0=9C =D0=A2=D0=95=D0=9B=D0=95=D0=9A=D0= =9E=D0=9C" >> =D1=82=D0=B5=D0=BB.: +380 44 491-21-08 >> =D0=BC=D0=BE=D0=B1.: +380 67 500-60-40 >> >> >> -----Original Message----- >> From: Robert Klemme [mailto:shortcutter@googlemail.com] >> Sent: Thursday, December 06, 2012 2:29 PM >> To: ruby-talk ML >> Subject: Re: Organizing code to avoid name space collision >> >> On Thu, Dec 6, 2012 at 11:52 AM, Martin Hansen >> wrote: >> >> How is it decided which of the two is included in regular code? >> > >> > I decide if I want backtrack or dynamic matching in the scripts I writ= e >> > - and include accordingly. >> > >> >>> I also explored your extend solution, but while that should work (I >> didn't >> >>> test) it means that every time I instantiate a Seq object I need to >> >>> extend it. I could accept that for the testing files, but I think it >> >>> would obfuscate the regular code that uses Seq objects. >> >> >> >> Not at all. You can do it in #initialize. No caller would need to >> >> change. >> > >> > OK, extend is the solution. Many thanks Robert. >> >> You're welcome! >> >> Kind regards >> >> robert >> >> -- >> remember.guy do |as, often| as.you_can - without end >> http://blog.rubybestpractices.com/ >> >> >> > --e89a8ff1c2e82e21b704d033a575 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable see=C2=A0h= ttp://www.ruby-lang.org/en/community/mailing-lists/

= you send 'unsubscribe' to=C2=A0ruby-talk-ctl@ruby-lang.org


On Thu, Dec 6= , 2012 at 1:36 PM, M=C3=A1rio Luan <mariosouzaluan@gmail.com>= ; wrote:
@Sergey= =C2=A0,

You may mark ruby-talk@ruby-lang.org as = spam on your email service.

Cheers!<= /span>


M=C3=A1rio Luan
TIM (1= 1) 59506744
OI (11) 98033-5954



2012/12/6 Sergey Zhikharev <s.= zhikharev@systemtele.com>
Hello, friend

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Excuse me please, how can I unsubscribe from it= ?

--
With best regards,
Sergey Zhikharev
"System Telecom"
tel.:=C2=A0 +380 44 491-21-08
mob.:=C2=A0 +380 67 500-60-40

--
=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,
=D0=96=D0=B8=D1=85=D0=B0=D1=80=D0=B5=D0=B2 =D0=A1=D0=B5=D1=80=D0=B3=D0=B5= =D0=B9,
"=D0=A1=D0=98=D0=A1=D0=A2=D0=95=D0=9C =D0=A2=D0=95=D0=9B=D0=95=D0=9A= =D0=9E=D0=9C"
=D1=82=D0=B5=D0=BB.:=C2=A0 +380 44 491-21-08
=D0=BC=D0=BE=D0=B1.:=C2=A0 +380 67 500-60-40


-----Original Message-----
From: Robert Klemme [mailto:shortcutter@googlemail.com]
Sent: Thursday, December 06, 2012 2:29 PM
To: ruby-talk ML
Subject: Re: Organizing code to avoid name space collision

On Thu, Dec 6, 2012 at 11:52 AM, Martin Hansen <lists@ruby-forum.com> wrote:
>> How is it decided which of the two is included in regular code? >
> I decide if I want backtrack or dynamic matching in the scripts I writ= e
> - and include accordingly.
>
>>> I also explored your extend solution, but while that should wo= rk (I
didn't
>>> test) it means that every time I instantiate a Seq object I ne= ed to
>>> extend it. I could accept that for the testing files, but I th= ink it
>>> would obfuscate the regular code that uses Seq objects.
>>
>> Not at all. =C2=A0You can do it in #initialize. =C2=A0No caller wo= uld need to
>> change.
>
> OK, extend is the solution. Many thanks Robert.

You're welcome!

Kind regards

robert

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




--e89a8ff1c2e82e21b704d033a575--