lib/output_mode/tldr/show.rb in output_mode-1.5.1 vs lib/output_mode/tldr/show.rb in output_mode-1.5.2

- old
+ new

@@ -37,10 +37,10 @@ # @param verbose: Whether the field will be shown in the verbose output # @param interactive: Whether the field will be show in the interactive output # @param section: Define the grouping a callable belongs to. Ignored by default # @param modes: Additional modes flags for the callable # @yieldparam model The subject the column is describing, some sort of data model - def register_callable(modes: {}, header:, verbose: nil, interactive: nil, section: :other, &b) + def register_callable(modes: {}, header:, verbose: nil, interactive: nil, section: :default, &b) modes = modes.map { |m| [m, true] }.to_h if modes.is_a? Array super(modes: modes.merge(verbose: verbose, interactive: interactive), header: header, section: section, &b)