Sha256: e57ab4f0972c4a4e4559ab4b7ac57dfa90c9208011b26248233a9b3510683dc5
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
require 'loofah' %w(default foster change redact translate truncate base version).each do |load_lib| require_relative "crazy_harry/#{load_lib}" end module CrazyHarry attr_accessor :base class << self def fragment(fragment, opts = {}) preserve_brs = opts.delete(:preserve_brs) preserve_dupes = opts.delete(:preserve_dupes) base = Base.new(fragment: fragment) base.no_blanks! base.convert_br_to_p! unless preserve_brs base.dedupe! unless preserve_dupes base end def to_s @base.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crazy_harry-0.2.1 | lib/crazy_harry.rb |