Module: Yaks::Sinatra::Helpers

Defined in:
lib/yaks-sinatra.rb

Instance Method Summary collapse

Instance Method Details

#yaks(object, opts = {}) ⇒ Object



11
12
13
14
15
# File 'lib/yaks-sinatra.rb', line 11

def yaks(object, opts = {})
  runner = Yaks::Sinatra.yaks_config.runner(object, {env: env}.merge(opts))
  content_type runner.format_name
  runner.call
end