Sha256: c4e7447d6c56fd7cb810f856a41b1f86798e2a7a6d95f93b5ee3856905059be2

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

module CukeModeler

  # @api private
  #
  # A mix-in module containing methods used by models that know from which line of
  # source code they originate. Internal helper class.
  module Sourceable

    # @api
    #
    # The line number where the element began in the source code
    attr_accessor :source_line

    # @api
    #
    # The column number where the element began in the source code
    attr_accessor :source_column


    private


    def populate_source_location(parsed_model_data)
      @source_line = parsed_model_data['line']
      @source_column = parsed_model_data['column']
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cuke_modeler-3.23.0 lib/cuke_modeler/sourceable.rb
cuke_modeler-3.22.0 lib/cuke_modeler/sourceable.rb
cuke_modeler-3.21.0 lib/cuke_modeler/sourceable.rb
cuke_modeler-3.20.1 lib/cuke_modeler/sourceable.rb