Module: Bridgetown::Utils::RubyFrontMatterDSL

Included in:
Model::RepoOrigin
Defined in:
lib/bridgetown-core/utils/ruby_front_matter.rb

Instance Method Summary collapse

Instance Method Details

#front_matter(scope: nil, &block) ⇒ Object



6
7
8
# File 'lib/bridgetown-core/utils/ruby_front_matter.rb', line 6

def front_matter(scope: nil, &block)
  RubyFrontMatter.new(scope: scope).tap { |fm| fm.instance_exec(&block) }
end