Module: Helium::Console::Formatters::Overflow

Defined in:
lib/helium/console/formatters/overflow.rb,
lib/helium/console/formatters/overflow/wrap.rb

Defined Under Namespace

Classes: Wrap

Class Method Summary collapse

Class Method Details

.get(type) ⇒ Object



7
8
9
10
11
12
# File 'lib/helium/console/formatters/overflow.rb', line 7

def self.get(type)
  require "helium/console/formatters/overflow/#{type}"
  const_get(type.to_s.split('_').map(&:capitalize).join)
rescue LoadError
  raise Error, "Unknown overflow option: #{type}"
end