lib/code.rb in code-ruby-0.13.1 vs lib/code.rb in code-ruby-0.14.0
- old
+ new
@@ -16,12 +16,10 @@
@timeout = timeout || DEFAULT_TIMEOUT
@context = Object::Context.new
end
def self.parse(input, timeout: DEFAULT_TIMEOUT)
- Timeout.timeout(timeout) do
- Parser.parse(input).to_raw
- end
+ Timeout.timeout(timeout) { Parser.parse(input).to_raw }
end
def self.evaluate(
input,
output: StringIO.new,