module Vimput
Constants
- VERSION
Public Class Methods
gets(editor: nil, command: nil)
click to toggle source
# File lib/vimput.rb, line 7 def self.gets(editor: nil, command: nil) tempfile = Tempfile.new('vimput') begin system(EditorCommand.new(editor: editor, command: command).text, tempfile.path) Input.new(tempfile.path).value ensure tempfile.close tempfile.unlink end end