Sha256: ec68093913b07a0193155b6e3d7daeef108fc72157c47fdb7f06e430f6b5c459
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 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) base = Base.new(fragment: fragment) base.no_blanks! base.convert_br_to_p! unless preserve_brs base.dedupe! 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.0 | lib/crazy_harry.rb |