Sha256: a3ab53865dffcc77ebc63399c90a4ee3047f3ab2ee3c2da367746a8d77f8fa56

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

module TermNote
  module Pane
    module Helpers
      module Title
        private

        def title_row
          wrapped_title(title).map &method(:title_row_format)
        end

        def title_row_format(row)
          row.join.bold
        end

        def wrapped_title(title)
          title.split('').each_slice(80)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
termnote-2.0.1 lib/termnote/pane/helpers/title.rb
termnote-2.0.0 lib/termnote/pane/helpers/title.rb
termnote-1.5.1 lib/termnote/pane/helpers/title.rb
termnote-1.5.0 lib/termnote/pane/helpers/title.rb