Sha256: 8c649d9d5226af690bc0f48adc9637eaf3b610c55854d4776139b64cc7141a64

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 Bytes

Contents

module CukeModeler

  # NOT A PART OF THE PUBLIC API
  # A mix-in module containing methods used by models that know from which line of
  # source code they originate.

  module Sourceable

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


    private


    def populate_source_line(model, parsed_model_data)
      model.source_line = parsed_model_data['line']
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cuke_modeler-3.6.0 lib/cuke_modeler/sourceable.rb
cuke_modeler-3.5.0 lib/cuke_modeler/sourceable.rb
cuke_modeler-3.4.0 lib/cuke_modeler/sourceable.rb