Sha256: 1542b763e90ee9ef8957fd0610560c5e358f5171d5609bd47f9a762285e74d84

Contents?: true

Size: 347 Bytes

Versions: 7

Compression:

Stored size: 347 Bytes

Contents

module Helium
  class Console
    module Formatters
      module Overflow
        def self.get(type)
          require "helium/console/formatters/overflow/#{type}"
          const_get(type.to_s.split('_').map(&:capitalize).join)
        rescue
          raise Error.new("Unknown overflow option: #{type}")
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
helium-console-0.1.7 lib/helium/console/formatters/overflow.rb
helium-console-0.1.6 lib/helium/console/formatters/overflow.rb
helium-console-0.1.5 lib/helium/console/formatters/overflow.rb
helium-console-0.1.4 lib/helium/console/formatters/overflow.rb
helium-console-0.1.3 lib/helium/console/formatters/overflow.rb
helium-console-0.1.2 lib/helium/console/formatters/overflow.rb
helium-console-0.1.1 lib/helium/console/formatters/overflow.rb