Class: FormKeeper::Filter::Custom
Instance Method Summary collapse
-
#initialize(block) ⇒ Custom
constructor
A new instance of Custom.
- #process(value) ⇒ Object
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 |