lib/hirb/console.rb in cldwalker-hirb-0.2.0 vs lib/hirb/console.rb in cldwalker-hirb-0.2.1
- old
+ new
@@ -30,10 +30,10 @@
Console.render_output(output, options.merge(:class=>"Hirb::Helpers::AutoTable"))
end
# Renders any specified view for the given object. Takes same options as Hirb::View.render_output.
def view(output, options={})
- Console.render_output(*args)
+ Console.render_output(output, options)
end
# Renders a menu given an array using Hirb::Menu.render.
def menu(output, options={}, &block)
Console.format_output(output, options.merge(:class=>"Hirb::Menu"), &block)