Class: Sitepress::Extensions::ProcManipulator

Inherits:
Object
  • Object
show all
Defined in:
lib/sitepress/extensions/proc_manipulator.rb

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ ProcManipulator

Returns a new instance of ProcManipulator.



4
5
6
# File 'lib/sitepress/extensions/proc_manipulator.rb', line 4

def initialize(block)
  @block = block
end

Instance Method Details

#process_resources(node) ⇒ Object



8
9
10
# File 'lib/sitepress/extensions/proc_manipulator.rb', line 8

def process_resources(node)
  @block.call node
end