Sha256: 247b073868ba8abf59ea8c3a9e568f63302fb5e118af122f8d270507e530bafb

Contents?: true

Size: 456 Bytes

Versions: 14

Compression:

Stored size: 456 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

14 entries across 14 versions & 1 rubygems

Version Path
cuke_modeler-3.20.0 lib/cuke_modeler/named.rb
cuke_modeler-3.19.0 lib/cuke_modeler/named.rb
cuke_modeler-3.18.0 lib/cuke_modeler/named.rb
cuke_modeler-3.17.0 lib/cuke_modeler/named.rb
cuke_modeler-3.16.0 lib/cuke_modeler/named.rb
cuke_modeler-3.15.0 lib/cuke_modeler/named.rb
cuke_modeler-3.14.0 lib/cuke_modeler/named.rb
cuke_modeler-3.13.0 lib/cuke_modeler/named.rb
cuke_modeler-3.12.0 lib/cuke_modeler/named.rb
cuke_modeler-3.11.0 lib/cuke_modeler/named.rb
cuke_modeler-3.10.0 lib/cuke_modeler/named.rb
cuke_modeler-3.9.0 lib/cuke_modeler/named.rb
cuke_modeler-3.8.0 lib/cuke_modeler/named.rb
cuke_modeler-3.7.0 lib/cuke_modeler/named.rb