Module: TTY::ClassMethods

Included in:
TTY
Defined in:
lib/tty.rb

Instance Method Summary collapse

Instance Method Details

#pluginsTTY::Plugins

Return shared plugins instance

Returns:



155
156
157
# File 'lib/tty.rb', line 155

def plugins
  @plugins ||= Plugins.new
end

#shell(input = $stdin, output = $stdout) ⇒ TTY::Shell

Return shared shell instance

Returns:



137
138
139
# File 'lib/tty.rb', line 137

def shell(input=$stdin, output=$stdout)
  @shell ||= Shell.new(input, output)
end

#systemTTY::System

Return shared system object

Returns:



146
147
148
# File 'lib/tty.rb', line 146

def system
  System
end

#terminalTTY::Terminal

Return shared terminal instance

Returns:



128
129
130
# File 'lib/tty.rb', line 128

def terminal
  @terminal ||= Terminal.new
end