Sha256: 316059e7b93664b76f07ffe4194a665b1728999a5ed2d67c52ea15668dc529ad

Contents?: true

Size: 214 Bytes

Versions: 5

Compression:

Stored size: 214 Bytes

Contents

require 'forwardable'

module LovelyRufus
  Wrap = Struct.new(:text, :width) do
    extend Forwardable

    def initialize(text = '', width: 72)
      super text, width
    end

    delegate lines: :text
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lovely_rufus-1.0.0 lib/lovely_rufus/wrap.rb
lovely_rufus-0.3.2 lib/lovely_rufus/wrap.rb
lovely_rufus-0.3.1 lib/lovely_rufus/wrap.rb
lovely_rufus-0.3.0 lib/lovely_rufus/wrap.rb
lovely_rufus-0.2.1 lib/lovely_rufus/wrap.rb