lib/verse/wrapping.rb in verse-0.1.0 vs lib/verse/wrapping.rb in verse-0.1.1

- old
+ new

@@ -29,11 +29,11 @@ # Wrap a text into lines no longer than wrap_at # # @api public def self.wrap(text, wrap_at, options = {}) - new(text).wrap(wrap_at, options) + new(text, options).wrap(wrap_at, options) end # Wrap a text into lines no longer than wrap_at length. # Preserves existing lines and existing word boundaries. # @@ -115,9 +115,11 @@ padding_right = SPACE * padding[1].to_i text.map! do |part| part.insert(0, padding_left).insert(-1, padding_right) end end + + protected attr_reader :text end # Wrapping end # Verse