Module: LibIXM::Interfaces::Simple
- Defined in:
- lib/interfaces/simple.rb
Instance Method Summary collapse
Instance Method Details
#attach_reflex(signal_regex, &action) ⇒ Object
7 8 9 10 11 |
# File 'lib/interfaces/simple.rb', line 7 def attach_reflex( signal_regex, &action ) adapter.every_packet { |packet| action.call(packet) if packet.match( signal_regex ) } end |