Module: Sinatra::Seo::Helpers

Defined in:
lib/sinatra/seo.rb

Instance Method Summary collapse

Instance Method Details

#seoObject



27
28
29
30
# File 'lib/sinatra/seo.rb', line 27

def seo
  @seo ||= app.nil? ? OpenStruct.new(YAML.load_file(self.class.seo_file)) : 
                      OpenStruct.new(YAML.load_file(app.seo_file))
end