class Yarrow::Content::Resource
Public Class Methods
from_frontmatter_url(data, url_field)
click to toggle source
# File lib/yarrow/content/resource.rb, line 10 def self.from_frontmatter_url(data, url_field) new({ id: data[:id], name: data[:name], title: data[:title], content: data[:content], url: data[url_field] }) end
from_source_path(data, &block)
click to toggle source
# File lib/yarrow/content/resource.rb, line 24 def self.from_source_path(data, &block) end
from_template_url(data, template, &block)
click to toggle source
# File lib/yarrow/content/resource.rb, line 20 def self.from_template_url(data, template, &block) end