Sha256: 763a9f238cbf2001a6c99d6c1ef4cefc5f8ddcb34d8c0d821c5a95f9fb920399

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module Forthic
  class CodeLocation
    attr_accessor :screen_name, :line, :column, :start_pos, :end_pos

    # @param [String] screen_name
    # @param [Integer] line
    # @param [Integer] column
    # @param [Integer] start_pos
    # @param [Integer] end_pos
    def initialize(screen_name: "<ad-hoc>", line: 1, column: 1, start_pos: 0, end_pos: 0)
      @screen_name = screen_name
      @line = line
      @column = column
      @start_pos = start_pos
      @end_pos = end_pos
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forthic-0.1.0 lib/forthic/code_location.rb