Class: A4Tools::FileReadInput

Inherits:
Object
  • Object
show all
Defined in:
lib/net_shell/io.rb

Instance Method Summary collapse

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

#readObject



124
125
126
# File 'lib/net_shell/io.rb', line 124

def read
  IO.read(@filename)
end

#read_allObject



128
129
130
# File 'lib/net_shell/io.rb', line 128

def read_all
  IO.read(@filename)
end