module CukeModeler::Named
@api private
A mix-in module containing methods used by models that represent an element that has a name. Internal helper class.
Attributes
name[RW]
@api
The name of the element
Private Instance Methods
name_output_string()
click to toggle source
# File lib/cuke_modeler/named.rb, line 17 def name_output_string name.nil? || name.empty? ? '' : " #{name}" end
populate_name(parsed_model_data)
click to toggle source
# File lib/cuke_modeler/named.rb, line 21 def populate_name(parsed_model_data) @name = parsed_model_data['name'] end