Sha256: 692f09d6810fe7aeaa659c3fe5f8bee27b809313b26f0301d8043ada3e6e0aac

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

require 'loofah'

%w(default foster change redact translate 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.1.2 lib/crazy_harry.rb