lib/tty/progressbar/multi.rb
# Find the number of characters to move into the line
# before printing the bar
#
# @param [TTY::ProgressBar] bar
#   the progress bar for which line inset is calculated
#
# @return [String]
#   the inset
#
# @api public
Find the number of characters to move into the line
before printing the bar
Find the number of characters to move into the line before printing the bar
def line_inset(bar)
        return "" if @top_bar.nil?
        case bar.row
        when @top_bar.row
          @inset_opts[:top]
        when rows
          @inset_opts[:bottom]
        else
          @inset_opts[:middle]
        end
      end
def line_inset ( bar ) return "" if @top_bar . nil? case bar . row when @top_bar . row @inset_opts [ :top ] when rows @inset_opts [ :bottom ] else @inset_opts [ :middle ] end end
Find the number of characters to move into the line
before printing the bar
Find the number of characters to move into the line before printing the bar
None
String
bar
<not_specific>
<not_specific>
bar the progress bar for which line inset is calculated
bar the progress bar for which line inset is calculated
api
None