Class: FormKeeper::Filter::Custom

Inherits:
Base
  • Object
show all
Defined in:
lib/formkeeper.rb

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ Custom

Returns a new instance of Custom.



39
40
41
# File 'lib/formkeeper.rb', line 39

def initialize(block)
  @custom = block
end

Instance Method Details

#process(value) ⇒ Object



42
43
44
# File 'lib/formkeeper.rb', line 42

def process(value)
  @custom.call(value) 
end