Class: Faceter::Nodes::ChangePrefix Abstract Private

Inherits:
AbstractMapper::Node
  • Object
show all
Defined in:
lib/faceter/nodes/change_prefix.rb

Overview

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

This class is abstract.

The base class for prefix-manipulating nodes

see [Faceter::Nodes::AddPrefix] see [Faceter::Nodes::RemovePrefix]

Direct Known Subclasses

AddPrefix, RemovePrefix

Instance Method Summary collapse

Instance Method Details

#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)


25
26
27
28
# File 'lib/faceter/nodes/change_prefix.rb', line 25

def transproc
  return __transformation__ unless nested
  Functions[:recursion, Functions[:is, Hash, __transformation__]]
end