Class: Input

Inherits:
Object
  • Object
show all
Defined in:
lib/vimput/input.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Input

Returns a new instance of Input.



2
3
4
# File 'lib/vimput/input.rb', line 2

def initialize(path)
  @path = path
end

Instance Method Details

#valueObject



6
7
8
9
10
11
12
# File 'lib/vimput/input.rb', line 6

def value
  begin
    File.read(@path)
  rescue
    nil
  end
end