Skip to content
Create a gist now

Instantly share code, notes, and snippets.

name: "ruby",
takes: {"function": noun_arb_text},
icon: "",
homepage: "",
author: {name: "Jack Dempsey", email: ""},
license: "MPL,GPL",
description: "Search ruby functions documentation",
help: "Select a ruby function",
execute: function(directObject)
var url = "{QUERY}"
var urlString = url.replace("{QUERY}", directObject.text);
preview: function(pblock, directObject)
searchText = jQuery.trim(directObject.text);
if(searchText.length <= 0)
pblock.innerHTML = "Search ruby function documentation";
var previewTemplate = "Search ruby function documentation of ${query}";
var previewData = {query: searchText};
pblock.innerHTML = CmdUtils.renderTemplate(previewTemplate, previewData);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.