lib/qlang/parser/integral_parser.rb in qlang-0.0.27182000 vs lib/qlang/parser/integral_parser.rb in qlang-0.0.27182100
- old
+ new
@@ -1,10 +1,10 @@
module Qlang
module Parser
module IntegralParser
include Base
- def execute(string)
- integrated, range = string.scan(/S *\((.+)\)\[(.+)\]/).first
+ def execute(els)
+ integrated, range = els[0], els[1]
integrated.rm!(' ')
IntegralApi.execute(FormulaParser.execute(integrated[0..-3]), integrated[-2..-1], range)
end