AI::ExpertSystem::Advanced::Viewer::Terminal - Viewer for terminal


AI-ExpertSystem-Advanced documentation  | view source Contained in the AI-ExpertSystem-Advanced distribution.

Index


NAME

Top

AI::ExpertSystem::Advanced::Viewer::Terminal - Viewer for terminal

DESCRIPTION

Top

Extends from AI::ExpertSystem::Advanced::Viewer::Base and its main purpose is to interact with a (console) terminal.

Attribtes

Top

readline

A Term::ReadLine instance.

Methods

Top

debug($msg)

Basically just prints the given $msg but prepends the "DEBUG" string to it.

print($msg)

Simply prints the given $msg.

print_error($msg)

Will prepend the "ERROR:" word to the given message and then will call print().

ask($message, @options)

Will be used to ask the user for some information. It will receive a string, the question to ask and an array of all the possible options.

explain($yaml_summary)

Explains what happened.

AUTHOR

Top

Pablo Fischer (pablo@pablo.com.mx).

COPYRIGHT

Top


AI-ExpertSystem-Advanced documentation  | view source Contained in the AI-ExpertSystem-Advanced distribution.