Sha256: dc92203133e745c7506e11b4281d219a6f27a25885ab607237bc457169c99daf

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

module Qlang
  module Parser
    module IntegralParser
      include Base
      def execute(string)
        integrated, range = string.scan(/S *\((.+)\)\[(.+)\]/).first

        integrated.rm!(' ')

        IntegralApi.execute(FormulaParser.execute(integrated[0..-3]), integrated[-2..-1], range)
      end
      module_function :execute
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qlang-0.0.27182000 lib/qlang/parser/integral_parser.rb
qlang-0.0.27180000 lib/qlang/parser/integral_parser.rb
qlang-0.0.27100000 lib/qlang/parser/integral_parser.rb
qlang-0.0.27000000 lib/qlang/parser/integral_parser.rb
qlang-0.0.27 lib/qlang/parser/integral_parser.rb
qlang-0.0.14142135 lib/qlang/parser/integral_parser.rb
qlang-0.0.1414213 lib/qlang/parser/integral_parser.rb