Class: Input
- Inherits:
-
Object
- Object
- Input
- Defined in:
- lib/vimput/input.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Input
constructor
A new instance of Input.
- #value ⇒ Object
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
#value ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/vimput/input.rb', line 6 def value begin File.read(@path) rescue nil end end |