Wrong number of arguments (0 for 2..3)

I’m using ruby-2.0.0-p353

When I do this:

def test_one?
true
end

def test_two?
true
end

test_two? && test_one? => error

I get: wrong number of arguments (0 for 2…3)

activesupport (4.1.1) is loaded.

Seems like it should not be an issue, or I’m missing something big.
Thanks.

Unsibscribe please.

Why?

On Wed, Jun 11, 2014 at 2:20 PM, Jernej Mihalic
[email protected]

Who are you and why are you asking me to unsubscribe? If you get too
many
emails the leave the mailing list.

On Wed, Jun 11, 2014 at 2:31 PM, Jernej Mihalic
[email protected]

to much emails

please

How can I do that?

https://www.ruby-lang.org/en/community/mailing-lists/

On Wed, Jun 11, 2014 at 2:38 PM, Jernej Mihalic
[email protected]

unsubscribed

Oh. That whole thing seemed strange. Has he not heard of a filter.

I think this may be activesupport causing this. When I do true && false
=>
false but with activesupport loaded I get nothing.

Hi Justin,

I don’t think he’s asking you specifically to unsubscribe, he’s just
trying
to unsubscribe from the mailing list. And you have to type
‘unsubscribed’
into any thread to be removed.

Oh crap. Just ignore me all together. I figured it out. Just one of
those
days. Not sure why I didn’t put two and two together. Sorry.

Can you explain the answer?

Sent from my phone

No, scrap that. Did it again and it’s working. Not sure why this is
having
that issue.

On Wednesday, June 11, 2014 02:20:17 PM Justin S. wrote:

end

test_two? && test_one? => error

I get: wrong number of arguments (0 for 2…3)

Show us the full error stack trace. That will be helpful to figure out
what
was is wrong and from where it has been thrown.

Regards,
Arup R.

Debugging is twice as hard as writing the code in the first place.
Therefore,
if you write the code as cleverly as possible, you are, by definition,
not
smart enough to debug it.

–Brian Kernighan

On Wed, Jun 11, 2014 at 02:39:04PM -0400, Jason K. wrote:

I don’t think he’s asking you specifically to unsubscribe, he’s just
trying to unsubscribe from the mailing list. And you have to type
‘unsubscribed’ into any thread to be removed.

Good one. :slight_smile:

It was just a stupid mistake on my part. I just didn’t follow the logic,
and tried to access a variable out of scope. I should have reviewed the
code more. Thanks.

On Wed, Jun 11, 2014 at 3:08 PM, Jeremy Axelrod
[email protected]

Unsubscribe please

On Wednesday, June 11, 2014 9:07 PM, Justin S.
[email protected] wrote:

Who are you and why are you asking me to unsubscribe? If you get too
many emails the leave the mailing list.

On Wed, Jun 11, 2014 at 2:31 PM, Jernej Mihalic
[email protected] wrote:

to much emails…

Am 12.06.2014 06:09, schrieb Steve Barnes:

Unsubscribe please

See
https://www.ruby-lang.org/en/community/mailing-lists/manual-instructions.

Am 11.06.2014 20:39, schrieb Jason K.:

And you have to type ‘unsubscribed’ into any thread to be removed.

That’s wrong! You need to send “unsubscribe” to a special address,
please read Mailing Lists
more carefully.

Regards,
Marcus