Sha256: d76dcd6f4b35f4dbcd8e8189ef85730878151ff85e2f82a9aee895d219dac3c9

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

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

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cuke_modeler-3.3.0 lib/cuke_modeler/named.rb
cuke_modeler-3.2.0 lib/cuke_modeler/named.rb
cuke_modeler-3.1.0 lib/cuke_modeler/named.rb
cuke_modeler-3.0.0 lib/cuke_modeler/named.rb
cuke_modeler-2.1.0 lib/cuke_modeler/named.rb
cuke_modeler-2.0.0 lib/cuke_modeler/named.rb