Sha256: 0e86323ae77143836405434a39858a66f698e48a5430137f61522fd8744e4e3e
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 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 geometry.yn end end # Caption end # Borders end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.0 | lib/vedeu/borders/caption.rb |