module Webgen::ContentProcessor::Ruby

Processes the content that is valid Ruby to generate new content.

Public Class Methods

call(context) click to toggle source

Process the content of context which needs to be valid Ruby code.

# File lib/webgen/content_processor/ruby.rb, line 14
def self.call(context)
  eval(context.content, binding, context.ref_node.alcn)
  context
end