_vendor/bundle/ruby/2.4.0/gems/jekyll-optional-front-matter-0.2.0/lib/jekyll-optional-front-matter/generator.rb
# Given a Jekyll::StaticFile, returns the file as a Jekyll::Page
Given a Jekyll::StaticFile, returns the file as a Jekyll::Page
Given a Jekyll :: StaticFile returns the file as a Jekyll :: Page
def page_from_static_file(static_file)
      base = static_file.instance_variable_get("@base")
      dir  = static_file.instance_variable_get("@dir")
      name = static_file.instance_variable_get("@name")
      Jekyll::Page.new(site, base, dir, name)
    end
def page_from_static_file ( static_file ) base = static_file . instance_variable_get ( "@base" ) dir = static_file . instance_variable_get ( "@dir" ) name = static_file . instance_variable_get ( "@name" ) Jekyll :: Page . new ( site , base , dir , name ) end
Given a Jekyll::StaticFile, returns the file as a Jekyll::Page
Given a Jekyll :: StaticFile returns the file as a Jekyll :: Page
static_file
<not_specific>