Class: A4Tools::FileReadInput
- Inherits:
-
Object
- Object
- A4Tools::FileReadInput
- Defined in:
- lib/net_shell/io.rb
Instance Method Summary collapse
-
#initialize(filename) ⇒ FileReadInput
constructor
A new instance of FileReadInput.
- #read ⇒ Object
- #read_all ⇒ Object
Constructor Details
#initialize(filename) ⇒ FileReadInput
Returns a new instance of FileReadInput.
120 121 122 |
# File 'lib/net_shell/io.rb', line 120 def initialize(filename) @filename = filename end |
Instance Method Details
#read ⇒ Object
124 125 126 |
# File 'lib/net_shell/io.rb', line 124 def read IO.read(@filename) end |
#read_all ⇒ Object
128 129 130 |
# File 'lib/net_shell/io.rb', line 128 def read_all IO.read(@filename) end |