module CukeModeler::Named

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

Attributes

name[RW]

The name of the element

Private Instance Methods

name_output_string() click to toggle source
# File lib/cuke_modeler/named.rb, line 14
def name_output_string
  name.nil? || name.empty? ? '' : " #{name}"
end
populate_name(model, parsed_model_data) click to toggle source
# File lib/cuke_modeler/named.rb, line 18
def populate_name(model, parsed_model_data)
  model.name = parsed_model_data['name']
end