Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Trouble with &condition
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
  3 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
 
Jake Dempsey  
View profile  
 More options Oct 23, 1:47 pm
From: Jake Dempsey <angelo0...@gmail.com>
Date: Fri, 23 Oct 2009 10:47:31 -0700 (PDT)
Local: Fri, Oct 23 2009 1:47 pm
Subject: Trouble with &condition
I have started looking at ruleby but have hit a small snag.  I can't
seem to understand how to use &condition. I have something like:

    rule :Rule2,
          [MyCass, :m, m.some_method_that_returns_an_array(&c{ |r|
r.include?("some val")})] do |v|
                  puts 'found it'
    end

Am I defining this wrong?  My understanding is that I can use
condition or c to apply a block to a method and the block will return
true or false for a match.  Is this wrong?

Also, I think I found a bug.  The method "binding" does not delegate
to method "b" correctly.


    Reply    Reply to author    Forward  
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.
Jake Dempsey  
View profile  
 More options Oct 23, 2:13 pm
From: Jake Dempsey <angelo0...@gmail.com>
Date: Fri, 23 Oct 2009 11:13:23 -0700 (PDT)
Local: Fri, Oct 23 2009 2:13 pm
Subject: Re: Trouble with &condition
Ignore me...i figured it out..was my fault.

But i still think the bug in my post is valid.

On Oct 23, 12:47 pm, Jake Dempsey <angelo0...@gmail.com> wrote:


    Reply    Reply to author    Forward  
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.
Joe Kutner  
View profile  
 More options Oct 23, 3:51 pm
From: Joe Kutner <jpkut...@gmail.com>
Date: Fri, 23 Oct 2009 14:51:00 -0500
Subject: Re: [ruleby] Re: Trouble with &condition
Ah, thank you for pointing this out.  I have put a fix into trunk:

http://github.com/mattup/ruleby/commit/e7100b1c304f6b96960f4c53e2fd95...


    Reply    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google