Sha256: f86ed34b251e25713e5a9a68812d5b28b5eb1eb59459b9ad7b7483ef06706707
Contents?: true
Size: 757 Bytes
Versions: 4
Compression:
Stored size: 757 Bytes
Contents
module CukeModeler # @api private # # A mix-in module containing methods used by models that represent an element that has steps. Internal helper class. module Stepped # @api # # The step models contained by this model attr_accessor :steps private def steps_output_string steps.collect { |step| indented_step_text(step) }.join("\n") end def indented_step_text(step) step.to_s.split("\n").collect { |line| " #{line}" }.join("\n") end def populate_steps(parsed_model_data) return unless parsed_model_data['steps'] parsed_model_data['steps'].each do |step_data| @steps << build_child_model(Step, step_data) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems