Class: Hieracles::Puppetdb::Filter
- Inherits:
-
Object
- Object
- Hieracles::Puppetdb::Filter
- Defined in:
- lib/hieracles/puppetdb/filter.rb
Instance Method Summary collapse
-
#initialize(regexp) ⇒ Filter
constructor
A new instance of Filter.
- #match(something) ⇒ Object
Constructor Details
#initialize(regexp) ⇒ Filter
Returns a new instance of Filter.
5 6 7 |
# File 'lib/hieracles/puppetdb/filter.rb', line 5 def initialize(regexp) @regexp = Regexp.new(regexp) end |
Instance Method Details
#match(something) ⇒ Object
9 10 11 |
# File 'lib/hieracles/puppetdb/filter.rb', line 9 def match(something) @regexp.match something end |