Sha256: 0fc822c60aea36c819510a8a57e14ab911144f316a19fbe61d1d4afb38eb71b9

Contents?: true

Size: 278 Bytes

Versions: 8

Compression:

Stored size: 278 Bytes

Contents

module Qlang
  module Parser
    module MatrixParser
      include Base
      def execute(lexed)
        rows = lexed.split(';')
        rows.all? { |row| row.count == rows.first.count }
        MatrixApi.execute(rows)
      end
      module_function :execute
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
qlang-0.0.14142135 lib/qlang/parser/matrix_parser.rb
qlang-0.0.1414213 lib/qlang/parser/matrix_parser.rb
qlang-0.0.141421 lib/qlang/parser/matrix_parser.rb
qlang-0.0.14142 lib/qlang/parser/matrix_parser.rb
qlang-0.0.1414 lib/qlang/parser/matrix_parser.rb
qlang-0.0.141 lib/qlang/parser/matrix_parser.rb
qlang-0.0.14 lib/qlang/parser/matrix_parser.rb
qlang-0.0.1 lib/qlang/parser/matrix_parser.rb