Sha256: d305cf1e35f05e5b63ed382527273404cf2e960d0d22a95d63124a7d851e28da
Contents?: true
Size: 1.32 KB
Versions: 34
Compression:
Stored size: 1.32 KB
Contents
module Cuboid module UI module OutputInterface # These methods need to be implemented by the driving UI. # # @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> module Abstract class Error < Cuboid::UI::OutputInterface::Error # Raised when trying to use an output method that has not been implemented. class MissingImplementation < Error end end # @abstract def print_error( message = '' ) fail Error::MissingImplementation end # @abstract def print_bad( message = '' ) fail Error::MissingImplementation end # @abstract def print_status( message = '' ) fail Error::MissingImplementation end # @abstract def print_info( message = '' ) fail Error::MissingImplementation end # @abstract def print_ok( message = '' ) fail Error::MissingImplementation end # @abstract def print_verbose( message = '' ) fail Error::MissingImplementation end # @abstract def print_line( message = '' ) fail Error::MissingImplementation end # @abstract def print_debug( message = '', level = 1 ) fail Error::MissingImplementation end # @abstract def output_provider_file # __FILE__ fail Error::MissingImplementation end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems