Class: Aro::P
Instance Attribute Summary collapse
-
#prompt ⇒ Object
Returns the value of attribute prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ P
constructor
A new instance of P.
Constructor Details
#initialize ⇒ P
Returns a new instance of P.
9 10 11 |
# File 'lib/aro/prompt.rb', line 9 def initialize self.prompt = TTY::Prompt.new end |
Instance Attribute Details
#prompt ⇒ Object
Returns the value of attribute prompt.
7 8 9 |
# File 'lib/aro/prompt.rb', line 7 def prompt @prompt end |
Class Method Details
.less(display_text = "") ⇒ Object
21 22 23 |
# File 'lib/aro/prompt.rb', line 21 def self.less(display_text = "") IO.popen("less -X", "w") { |f| f.puts display_text } end |
.p ⇒ Object
13 14 15 |
# File 'lib/aro/prompt.rb', line 13 def self.p P.instance.prompt end |