Sha256: 4143c1e1291eff6f4665c30ac3cdcd20871fb95f101610666e71aaca5e294bd2
Contents?: true
Size: 585 Bytes
Versions: 5
Compression:
Stored size: 585 Bytes
Contents
module Vedeu module Borders # When a {Vedeu::Borders::Border} has a caption, truncate it if # the caption is longer than the interface is wide, and pad with a # space either side. # # The caption is displayed within the bottom border of the # interface/view. # # @api private # class Caption < Vedeu::Borders::Title private # @return [Fixnum] def start_index (width - size) - 1 end # @return [Fixnum] def y @_y ||= geometry.yn end end # Caption end # Borders end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems