accessing the rule handle

5 views
Skip to first unread message

bobgimlich

unread,
Mar 12, 2010, 4:46:31 PM3/12/10
to Ruleby
I if i have rule

class ARulebook < Ruleby::Rulebook
def rules
rule :my_handle [Thing, :t ] do |context|
assert a = Action.new(:rule_name => 'my_handle')
end
end
end

can I access the rule handle :my_handle inside the rule?

btw, nice job, joe.

Joe Kutner

unread,
Mar 15, 2010, 9:28:36 AM3/15/10
to rul...@googlegroups.com
In short: No.  



--
You received this message because you are subscribed to the Google Groups "Ruleby" group.
To post to this group, send email to rul...@googlegroups.com.
To unsubscribe from this group, send email to ruleby+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruleby?hl=en.


bobgimlich

unread,
Mar 17, 2010, 8:49:49 PM3/17/10
to Ruleby
ok, cool then.

On Mar 15, 9:28 am, Joe Kutner <jpkut...@gmail.com> wrote:
> In short: No.
>

> On Fri, Mar 12, 2010 at 4:46 PM, bobgimlich <giml...@gmail.com> wrote:
> > I if i have rule
>
> > class ARulebook < Ruleby::Rulebook
> >  def rules
> >    rule :my_handle [Thing, :t ] do |context|
> >      assert a = Action.new(:rule_name => 'my_handle')
> >    end
> >  end
> > end
>
> > can I access the rule handle :my_handle inside the rule?
>
> > btw, nice job, joe.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruleby" group.
> > To post to this group, send email to rul...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > ruleby+un...@googlegroups.com<ruleby%2Bunsu...@googlegroups.com>

Joe Kutner

unread,
Mar 17, 2010, 9:18:59 PM3/17/10
to rul...@googlegroups.com, Ruleby
If you have some ideas about how and why to make this possible - run
them by us. I'm not totally opposed to it. But it seems like it would
make it too easy to put conditional logic in the RHS.
Reply all
Reply to author
Forward
0 new messages