Sha256: b7ba982074b41e794939a9e98be8623f0b96603822aa429278d46cfc7ae74dc3
Contents?: true
Size: 1.6 KB
Versions: 7
Compression:
Stored size: 1.6 KB
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2022 Eric Crane. All rights reserved. # # Handle input and output for the current platform. # # This is an abstract base class and minimal implementation # is only to facilitate testing. # module GlooLang module App class Platform # # Set up Platform. # def initialize end # # Show a message. # Abstract--implment in subclass. # def show( msg, md=false, page=false ) puts msg end # # Prompt for the next command. # Abstract--implment in subclass. # def prompt_cmd return '' end # # Clear the screen. # Abstract--implment in subclass. # def clear_screen end # # Edit some temporary text and return the edited text. # Abstract--implment in subclass. # def edit initial_value return initial_value end # # Show the given table data. # Abstract--implment in subclass. # def show_table( headers, data, title = nil ) end # # Get the number of vertical lines on screen. # Abstract--implment in subclass. # def lines return 40 end # # Get the number of horizontal columns on screen. # Abstract--implment in subclass. # def cols return 80 end # # Get the file mechanism for this platform. # def getFileMech( engine ) return GlooLang::Persist::DiscMech.new( engine ) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems