Class: Chamber::Filters::NamespaceFilter

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data:, namespaces:, **_args) ⇒ NamespaceFilter

Returns a new instance of NamespaceFilter.



19
20
21
22
# File 'lib/chamber/filters/namespace_filter.rb', line 19

def initialize(data:, namespaces:, **_args)
  self.data       = data.deep_dup
  self.namespaces = namespaces
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

#namespacesObject

Returns the value of attribute namespaces.



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

def namespaces
  @namespaces
end

Class Method Details

.execute(**args) ⇒ Object



15
16
17
# File 'lib/chamber/filters/namespace_filter.rb', line 15

def self.execute(**args)
  new(**args).__send__(:execute)
end