lib/crazy_harry.rb in crazy_harry-0.0.4 vs lib/crazy_harry.rb in crazy_harry-0.1.0

- old
+ new

@@ -8,13 +8,14 @@ attr_accessor :base class << self - def fragment(fragment) + def fragment(fragment, opts = {}) + preserve_brs = opts.delete(:preserve_brs) base = Base.new(fragment: fragment) base.no_blanks! - base.convert_br_to_p! + base.convert_br_to_p! unless preserve_brs base.dedupe! base end def to_s