Sha256: 247b073868ba8abf59ea8c3a9e568f63302fb5e118af122f8d270507e530bafb
Contents?: true
Size: 456 Bytes
Versions: 14
Compression:
Stored size: 456 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 def populate_name(model, parsed_model_data) model.name = parsed_model_data['name'] end end end
Version data entries
14 entries across 14 versions & 1 rubygems