Class: RMonitor::Selector
- Inherits:
-
Object
- Object
- RMonitor::Selector
- Defined in:
- lib/rmonitor/selector.rb
Instance Method Summary collapse
- #first_invokable ⇒ Object
-
#initialize(options = {}) ⇒ Selector
constructor
A new instance of Selector.
Constructor Details
Instance Method Details
#first_invokable ⇒ Object
8 9 10 11 12 |
# File 'lib/rmonitor/selector.rb', line 8 def first_invokable @profiles.find do |profile| @matcher.invokable? profile end end |