Class: Inferno::Web::Serializers::MarkdownExtractor

Inherits:
Blueprinter::Extractor
  • Object
show all
Defined in:
lib/inferno/apps/web/serializers/markdown_extractor.rb

Instance Method Summary collapse

Instance Method Details

#extract(field_name, object, _local_options, _options = {}) ⇒ Object



10
11
12
# File 'lib/inferno/apps/web/serializers/markdown_extractor.rb', line 10

def extract(field_name, object, _local_options, _options = {})
  format_markdown(object.send(field_name))
end