Sha256: 6e4bb56831a60150259029e4756129a76c25d3a69e9affa9027699fbd07cf2d2

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

module CukeModeler

  # @api private
  #
  # A mix-in module containing methods used by models that represent an element that has a name. Internal helper class.
  module Named

    # @api
    #
    # The name of the element
    attr_accessor :name


    private


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

    def populate_name(parsed_model_data)
      @name = parsed_model_data['name']
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cuke_modeler-3.23.0 lib/cuke_modeler/named.rb
cuke_modeler-3.22.0 lib/cuke_modeler/named.rb
cuke_modeler-3.21.0 lib/cuke_modeler/named.rb
cuke_modeler-3.20.1 lib/cuke_modeler/named.rb