Module: Sinatra::RbbtToolHelper

Defined in:
lib/rbbt/rest/web_tool.rb

Instance Method Summary collapse

Instance Method Details

#tool(toolname, options = {}) ⇒ Object



4
5
6
7
# File 'lib/rbbt/rest/web_tool.rb', line 4

def tool(toolname, options = {})
  options[:id] ||= toolname.to_s + "_#{rand(10000)}"
  partial_render("tools/#{toolname}", options)
end