Class: Attr::Gather::Filters::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/attr/gather/filters/base.rb

Overview

This class is abstract.

Subclass and override #call to implement a custom Filter class.

Direct Known Subclasses

Contract, Noop

Instance Method Summary collapse

Instance Method Details

#call(_input) ⇒ Attr::Gather::Filter::Result

Applies the filter

Parameters:

  • _input (Hash)

Returns:

  • (Attr::Gather::Filter::Result)

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/attr/gather/filters/base.rb', line 14

def call(_input)
  raise NotImplementedError
end