Class: Expedite::Agents::Registration
- Inherits:
-
Struct
- Object
- Struct
- Expedite::Agents::Registration
- Defined in:
- lib/expedite/agents.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#matcher ⇒ Object
Returns the value of attribute matcher.
Instance Method Summary collapse
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent
40 41 42 |
# File 'lib/expedite/agents.rb', line 40 def agent @agent end |
#matcher ⇒ Object
Returns the value of attribute matcher
40 41 42 |
# File 'lib/expedite/agents.rb', line 40 def matcher @matcher end |
Instance Method Details
#match?(name) ⇒ Boolean
41 42 43 |
# File 'lib/expedite/agents.rb', line 41 def match?(name) File.fnmatch?(matcher, name.to_s) end |