lib/tty.rb in tty-0.0.1 vs lib/tty.rb in tty-0.0.2

- old
+ new

@@ -1,11 +1,32 @@ # -*- encoding: utf-8 -*- require 'tty/version' -require 'tty/table' -require 'tty/color' require 'tty/support/utils' +require 'tty/support/delegatable' +require 'tty/support/conversion' +require 'tty/color' +require 'tty/terminal' +require 'tty/system' +require 'tty/table' + module TTY + + # Raised when the argument type is different from expected + class TypeError < ArgumentError; end + + class << self + + # Return terminal instance + # + # @return [TTY::Terminal] + # + # @api public + def terminal + @terminal ||= Terminal.new + end + + end end # TTY