Class: Verto::DSL::UpdateChangelog::FilteredBy::Proxy
- Inherits:
-
Object
- Object
- Verto::DSL::UpdateChangelog::FilteredBy::Proxy
- Defined in:
- lib/verto/dsl/update_changelog/filtered_by.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(filter_class, final_filter) ⇒ Proxy
constructor
A new instance of Proxy.
- #new ⇒ Object
Constructor Details
#initialize(filter_class, final_filter) ⇒ Proxy
Returns a new instance of Proxy.
18 19 20 21 |
# File 'lib/verto/dsl/update_changelog/filtered_by.rb', line 18 def initialize(filter_class, final_filter) @filter_class = filter_class @final_filter = final_filter end |
Instance Method Details
#call(*args) ⇒ Object
29 30 31 32 33 |
# File 'lib/verto/dsl/update_changelog/filtered_by.rb', line 29 def call(*args) filter_object .call(*args) .select { || @final_filter.match?() } end |
#new ⇒ Object
23 24 25 26 27 |
# File 'lib/verto/dsl/update_changelog/filtered_by.rb', line 23 def new filter_object self end |