Class: TextUtils::CustomMarkdown
- Defined in:
- lib/text_utils/custom_markdown.rb
Instance Method Summary collapse
Methods inherited from Processor
Constructor Details
This class inherits a constructor from TextUtils::Processor
Instance Method Details
#call(data, env) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/text_utils/custom_markdown.rb', line 2 def call data, env if env[:format] == :markdown data do |data| image_box data do |data| call_next data, env end end else call_next data, env end end |