Sha256: e3b93767bdf332168ba5e83c58aa31bf6d684f7bda2269bc7735e3e85fd2a94d

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

module RobotVim
  class VimResponse
    attr_reader :body, :column_number, :line_number
    def initialize(response_string)
      @response_string = response_string
      lines = @response_string.split("\n")
      @column_number = lines.pop.to_i
      @line_number = lines.pop.to_i
      @body = lines.join("\n")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
robot-vim-2.0.1 lib/robot-vim/vim_response.rb
robot-vim-2.0.0 lib/robot-vim/vim_response.rb