5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 13:36:21 +00:00
panel/app/models/metadata_html.rb

14 lines
263 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Campos en HTML
class MetadataHtml < MetadataContent
2023-10-06 13:53:19 +00:00
include Metadata::FrontMatterConcern
2023-10-06 13:53:19 +00:00
# Volver a obtener el valor desde el documento
#
# @return [String,nil]
def document_value
document.data[name.to_s]
end
end