Class: Chamber::Filters::NamespaceFilter
- Inherits:
-
Object
- Object
- Chamber::Filters::NamespaceFilter
- Defined in:
- lib/chamber/filters/namespace_filter.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data:, namespaces:, **_args) ⇒ NamespaceFilter
constructor
A new instance of NamespaceFilter.
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
#data ⇒ Object
Returns the value of attribute data.
12 13 14 |
# File 'lib/chamber/filters/namespace_filter.rb', line 12 def data @data end |
#namespaces ⇒ Object
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 |