Method: Faceter::Nodes::Fold#transproc

Defined in:
lib/faceter/nodes/fold.rb

#transprocTransproc::Function

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Transformer function, defined by the node

Returns:

  • (Transproc::Function)


17
18
19
# File 'lib/faceter/nodes/fold.rb', line 17

def transproc
  Functions[-> value { { key => value } }]
end