add helper to get the name of the renderer
Brian Lopez seniorlopez@gmail.com
Fri, 10 Feb 2012 18:06:37 -0800
1 files changed,
9 insertions(+),
0 deletions(-)
jump to
M
lib/github/markup.rb
→
lib/github/markup.rb
@@ -69,6 +69,15 @@ end
nil end + def renderer_name(filename) + @@markups.each do |key, value| + if Regexp.compile("\\.(#{key})$") =~ filename + return key + end + end + nil + end + def execute(command, target) out = '' Open3.popen3(command) do |stdin, stdout, _|