Sha256: 586d31b1ba6ba1f1aa00bffcfda609bdb90d65877a65b0cdf220e3e2a09987b7

Contents?: true

Size: 320 Bytes

Versions: 13

Compression:

Stored size: 320 Bytes

Contents

module CukeModeler

  # 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

13 entries across 13 versions & 1 rubygems

Version Path
cuke_modeler-1.5.1 lib/cuke_modeler/named.rb
cuke_modeler-1.5.0 lib/cuke_modeler/named.rb
cuke_modeler-1.4.0 lib/cuke_modeler/named.rb
cuke_modeler-1.3.0 lib/cuke_modeler/named.rb
cuke_modeler-1.2.1 lib/cuke_modeler/named.rb
cuke_modeler-1.2.0 lib/cuke_modeler/named.rb
cuke_modeler-1.1.1 lib/cuke_modeler/named.rb
cuke_modeler-1.1.0 lib/cuke_modeler/named.rb
cuke_modeler-1.0.4 lib/cuke_modeler/named.rb
cuke_modeler-1.0.3 lib/cuke_modeler/named.rb
cuke_modeler-1.0.2 lib/cuke_modeler/named.rb
cuke_modeler-1.0.1 lib/cuke_modeler/named.rb
cuke_modeler-1.0.0 lib/cuke_modeler/named.rb