Class: Puffy::Formatters::Pf::Rule
- Inherits:
-
Base::Rule
- Object
- Base::Rule
- Puffy::Formatters::Pf::Rule
- Defined in:
- lib/puffy/formatters/pf.rb
Overview
Pf implementation of a Puffy Rule formatter.
Instance Method Summary collapse
-
#emit_rule(rule) ⇒ Object
Returns a Pf String representation of the provided
rulePuffy::Rule.
Instance Method Details
#emit_rule(rule) ⇒ Object
Returns a Pf String representation of the provided rule Puffy::Rule.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/puffy/formatters/pf.rb', line 41 def emit_rule(rule) parts = [] parts << emit_action(rule) parts << emit_direction(rule) parts << emit_log(rule) parts << emit_quick(rule) parts << emit_on(rule) parts << emit_what(rule) parts.flatten.compact.join(' ') end |