Module: TTY::ClassMethods
- Included in:
- TTY
- Defined in:
- lib/tty.rb
Instance Method Summary collapse
-
#plugins ⇒ TTY::Plugins
Return shared plugins instance.
-
#shell(input = $stdin, output = $stdout) ⇒ TTY::Shell
Return shared shell instance.
-
#system ⇒ TTY::System
Return shared system object.
-
#terminal ⇒ TTY::Terminal
Return shared terminal instance.
Instance Method Details
#plugins ⇒ TTY::Plugins
Return shared plugins instance
156 157 158 |
# File 'lib/tty.rb', line 156 def plugins @plugins ||= Plugins.new end |
#shell(input = $stdin, output = $stdout) ⇒ TTY::Shell
Return shared shell instance
138 139 140 |
# File 'lib/tty.rb', line 138 def shell(input=$stdin, output=$stdout) @shell ||= Shell.new(input, output) end |
#system ⇒ TTY::System
Return shared system object
147 148 149 |
# File 'lib/tty.rb', line 147 def system System end |
#terminal ⇒ TTY::Terminal
Return shared terminal instance
129 130 131 |
# File 'lib/tty.rb', line 129 def terminal @terminal ||= Terminal.new end |