Sha256: 67e8e72da1337c7aaace3d575836702d0b71e57c452ed30c0d8072f98c79cb5e

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

module CukeModeler

  # NOT A PART OF THE PUBLIC API
  # A mix-in module containing methods used by models that represent an element that has a name.

  module Named

    # The name of the element
    attr_accessor :name


    private


    def name_output_string
      name.nil? || name.empty? ? '' : " #{name}"
    end

    def populate_name(model, parsed_model_data)
      model.name = parsed_model_data['name']
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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