Module: Webgen::ContentProcessor::Ruby
- Extended by:
- ERB::Util
- Defined in:
- lib/webgen/content_processor/ruby.rb
Overview
Processes the content that is valid Ruby to generate new content.
Class Method Summary collapse
-
.call(context) ⇒ Object
Process the content of
context
which needs to be valid Ruby code.
Class Method Details
.call(context) ⇒ Object
Process the content of context
which needs to be valid Ruby code.
15 16 17 18 |
# File 'lib/webgen/content_processor/ruby.rb', line 15 def self.call(context) eval(context.content, binding, context.ref_node.alcn) context end |