Class: Inferno::Web::Serializers::MarkdownExtractor
- Inherits:
-
Blueprinter::Extractor
- Object
- Blueprinter::Extractor
- Inferno::Web::Serializers::MarkdownExtractor
- 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, , = {}) format_markdown(object.send(field_name)) end |