Class: Hieracles::Puppetdb::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/hieracles/puppetdb/filter.rb

Instance Method Summary collapse

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