Permalink
Browse files

default to xml if format option is set

  • Loading branch information...
1 parent 157defb commit 7df7edc217b1a5102571d61f19d7bd70b25206ce @cldwalker committed Feb 1, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/wolf/mouth.rb
View
@@ -38,6 +38,8 @@ def build_query(args)
end
def eat_out(query, options, fetch_options)
+ # Can't display other formats except as raw xml
+ options[:xml] = true if fetch_options[:format] && !options.key?(:xml)
if options[:open]
open Wolfram.query(query,
:query_uri => "http://www.wolframalpha.com/input/").uri(:i => query)

0 comments on commit 7df7edc

Please sign in to comment.