Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ambition / lib / ambition / enumerable.rb
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Barton  
View profile  
 More options Apr 23 2009, 10:49 am
From: Mike Barton <barton.mich...@gmail.com>
Date: Thu, 23 Apr 2009 07:49:15 -0700 (PDT)
Local: Thurs, Apr 23 2009 10:49 am
Subject: ambition / lib / ambition / enumerable.rb
Hi,

Is this line correct?

  remove_method :count, :find, :find_all

I get an error when running ambition because I think Ruby Enumerable
doesn't have a count method.

Cheers

Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Hoskings  
View profile  
 More options Apr 23 2009, 12:08 pm
From: Ben Hoskings <b...@hoskings.net>
Date: Fri, 24 Apr 2009 02:08:11 +1000
Local: Thurs, Apr 23 2009 12:08 pm
Subject: Re: ambition / lib / ambition / enumerable.rb
Enumerable#count is defined; to see the docs, just try a

$ ri Enumerable#count

Could you paste the error you're getting (i.e. the backtrace if it's  
an exception)?

Ben

On 24/04/2009, at 12:49 AM, Mike Barton wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Barton  
View profile  
 More options Apr 23 2009, 5:27 pm
From: Mike Barton <barton.mich...@gmail.com>
Date: Thu, 23 Apr 2009 14:27:31 -0700 (PDT)
Local: Thurs, Apr 23 2009 5:27 pm
Subject: Re: ambition / lib / ambition / enumerable.rb
$ ri Enumerable#count
Nothing known about Enumerable#count

$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]

Could it be specific to a Ruby version? The error I got was a method
not found.
Is this method specific to 1.9 ?

I changed the ambition code to:

  remove_method :find, :find_all

Which solved the problem.

Cheers

Mike

On Apr 23, 5:08 pm, Ben Hoskings <b...@hoskings.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Hoskings  
View profile  
 More options Apr 23 2009, 9:04 pm
From: Ben Hoskings <b...@hoskings.net>
Date: Fri, 24 Apr 2009 11:04:54 +1000
Local: Thurs, Apr 23 2009 9:04 pm
Subject: Re: ambition / lib / ambition / enumerable.rb
Ahh, it'll be a ruby 1.8.7 addition. You should upgrade if you can -  
what OS are you running?

Ben

Sent from my iPhone

On 24/04/2009, at 7:27 AM, Mike Barton <barton.mich...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »