Take the 2-minute tour ×  I'm looking for a simple way to let
users define a set of rules to filter objects.  Eg. let them
define something like "notify me about a booking if booking date
< 2009/04/30 AND value > 100.00"  More or less: I'd like to have
a Ruby rules engine with custom DSL.  Is there a library
offering that? Came across Ruleby, but it doesn't support custom
DSL, yet.  What's the best apporach to do that?  share|improve
this question add comment  3 Answers  up vote 3 down vote
accepted  Take a look at Treetop. You can define your DSL as a
Parsing Expression Grammar and then parse it to create your
rules in whatever format you like.  share|improve this answer Hi
thanks for answer. Treetop really looks like a solution. Do you
have a link for any best practices website maybe? Hard to find
good stuff on the net. I was thinking about the following
approach: - Let users define their rules - Parse these using
Treetop - Create Ruby code based on these rules - feed these
into Ruleby - filter my objects u