Class: Chamber::Filters::NamespaceFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/chamber/filters/namespace_filter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ NamespaceFilter

Returns a new instance of NamespaceFilter.



6
7
8
9
# File 'lib/chamber/filters/namespace_filter.rb', line 6

def initialize(options = {})
  self.data       = Hashie::Mash.new(options.fetch(:data))
  self.namespaces = options.fetch(:namespaces)
end

Class Method Details

.execute(options = {}) ⇒ Object



11
12
13
# File 'lib/chamber/filters/namespace_filter.rb', line 11

def self.execute(options = {})
  self.new(options).send(:execute)
end