Module: Bridgetown::FrontMatter::RubyDSL

Defined in:
bridgetown-core/lib/bridgetown-core/front_matter/ruby.rb

Instance Method Summary collapse

Instance Method Details

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



6
7
8
# File 'bridgetown-core/lib/bridgetown-core/front_matter/ruby.rb', line 6

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