Top Level Namespace

Defined Under Namespace

Classes: Filtri, FiltriCmd, FiltriInitError

Instance Method Summary collapse

Instance Method Details

#filtri(&block) ⇒ Filtri

Create a Filtri object containing a set of rules

Examples:


f = filtri do
    rule "foo" => "bar"
    rule "baz" => "bug"
end

Returns:

  • (Filtri)

    A new Filtri object containing the provided rules



214
215
216
# File 'lib/filtri.rb', line 214

def filtri(&block)
  Docile.dsl_eval(Filtri.new, &block)
end