Class: Pry::Shell::IO::Editor
- Inherits:
-
Object
- Object
- Pry::Shell::IO::Editor
- Defined in:
- lib/pry/shell/io/editor.rb
Constant Summary collapse
- DUMMY_RETURN =
"true"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file, line) ⇒ Editor
constructor
A new instance of Editor.
- #open ⇒ Object
Constructor Details
#initialize(file, line) ⇒ Editor
Returns a new instance of Editor.
13 14 15 16 |
# File 'lib/pry/shell/io/editor.rb', line 13 def initialize(file, line) @file = file @line = line end |
Class Method Details
.open(file, line) ⇒ Object
9 10 11 |
# File 'lib/pry/shell/io/editor.rb', line 9 def self.open(file, line) new(file, line).open && DUMMY_RETURN end |
Instance Method Details
#open ⇒ Object
18 19 20 |
# File 'lib/pry/shell/io/editor.rb', line 18 def open File.write(file, proxy_editor) end |