Sha256: bd3e536b436d71c99eeda073faa57b713a1253aff8406d740ff53a7572456e25

Contents?: true

Size: 369 Bytes

Versions: 14

Compression:

Stored size: 369 Bytes

Contents

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cistern-0.10.2 lib/cistern/formatter.rb
cistern-0.9.2 lib/cistern/formatter.rb
cistern-0.9.1 lib/cistern/formatter.rb
cistern-0.9.0 lib/cistern/formatter.rb
cistern-0.8.0 lib/cistern/formatter.rb
cistern-0.7.1 lib/cistern/formatter.rb
cistern-0.7.0 lib/cistern/formatter.rb
cistern-0.6.0 lib/cistern/formatter.rb
cistern-0.5.10 lib/cistern/formatter.rb
cistern-0.5.9 lib/cistern/formatter.rb
cistern-0.5.8 lib/cistern/formatter.rb
cistern-0.5.7 lib/cistern/formatter.rb
cistern-0.5.6 lib/cistern/formatter.rb
cistern-0.5.4 lib/cistern/formatter.rb