Module: Fluent::Locators
- Included in:
- Fluent
- Defined in:
- lib/fluent/locators.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(caller) ⇒ Object
6 7 8 |
# File 'lib/fluent/locators.rb', line 6 def self.included(caller) ::Fluent::Generators.generate_locators(caller) end |
Instance Method Details
#locate_by(locator) ⇒ Object
10 11 12 |
# File 'lib/fluent/locators.rb', line 10 def locate_by(locator) locator[0] ? locator[0] : {index: 0} end |