Class: WorkOn::Terminal
- Inherits:
-
Object
- Object
- WorkOn::Terminal
- Defined in:
- lib/work_on/terminal.rb
Overview
Interface to the outside world Terminal.new will check the current platform and return a AbstractTerminal subclass based on it
Class Method Summary collapse
Class Method Details
.instance ⇒ Object
95 96 97 98 99 100 101 102 |
# File 'lib/work_on/terminal.rb', line 95 def self.instance case RUBY_PLATFORM when /darwin/ MacTerminal.instance else raise "no implementation found for your platform" end end |