Sha256: c4fe76f7c0ee086372562d52094cf11776fcbd0d6b9768dcb55a9c549ed79c9a

Contents?: true

Size: 402 Bytes

Versions: 22

Compression:

Stored size: 402 Bytes

Contents

module Cistern::Formatter
  autoload :AwesomePrint, 'cistern/formatter/awesome_print'
  autoload :Formatador,   'cistern/formatter/formatador'

  def self.default
    if defined?(::AwesomePrint)
      Cistern::Formatter::AwesomePrint
    elsif defined?(::Formatador)
      Cistern::Formatter::Formatador
    else
      Cistern::Formatter::Default
    end
  end
end

require 'cistern/formatter/default'

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cistern-2.8.0 lib/cistern/formatter.rb
cistern-0.12.3 lib/cistern/formatter.rb
cistern-2.7.2 lib/cistern/formatter.rb
cistern-2.7.1 lib/cistern/formatter.rb
cistern-2.7.0 lib/cistern/formatter.rb
cistern-2.6.0 lib/cistern/formatter.rb
cistern-2.5.0 lib/cistern/formatter.rb
cistern-2.4.1 lib/cistern/formatter.rb
cistern-2.4.0 lib/cistern/formatter.rb
cistern-2.3.0 lib/cistern/formatter.rb
cistern-2.2.7 lib/cistern/formatter.rb
cistern-2.2.6 lib/cistern/formatter.rb
cistern-2.2.5 lib/cistern/formatter.rb
cistern-2.2.4 lib/cistern/formatter.rb
cistern-2.2.3 lib/cistern/formatter.rb
cistern-2.2.1 lib/cistern/formatter.rb
cistern-2.1.0 lib/cistern/formatter.rb
cistern-2.0.5 lib/cistern/formatter.rb
cistern-2.0.4 lib/cistern/formatter.rb
cistern-0.12.2 lib/cistern/formatter.rb