lib/cuke_modeler/models/table.rb in cuke_modeler-3.21.0 vs lib/cuke_modeler/models/table.rb in cuke_modeler-3.22.0
- old
+ new
@@ -23,11 +23,11 @@
# @raise [ArgumentError] If *source_text* is not a String
# @return [Table] A new Table instance
def initialize(source_text = nil)
@rows = []
- super(source_text)
+ super
end
# Returns the model objects that are children of this model. For a
# Table model, these would be any associated Row models.
#
@@ -62,10 +62,10 @@
#
# @param verbose [Boolean] Whether or not to return the full details of
# the object. Defaults to false.
# @return [String] A string representation of this model
def inspect(verbose: false)
- return super(verbose: verbose) if verbose
+ return super if verbose
row_output = @rows&.collect { |row| row.cells.collect(&:value) }
"#{super.chop} @rows: #{row_output.inspect}>"
end