lib/cuke_modeler/models/rule.rb in cuke_modeler-3.19.0 vs lib/cuke_modeler/models/rule.rb in cuke_modeler-3.20.0

- old
+ new

@@ -72,9 +72,18 @@ text << "\n\n#{tests_output_string}" unless tests.empty? text end + # See `Object#inspect`. Returns some basic information about the + # object, including its class, object ID, and its most meaningful + # attribute. For a rule model, this will be the name of the rule. + def inspect(verbose: false) + return super(verbose: verbose) if verbose + + "#{super.chop} @name: #{@name.inspect}>" + end + private def parse_source(source_text)