Class: AwsMust::FileProvider
- Inherits:
-
Object
- Object
- AwsMust::FileProvider
- Defined in:
- lib/aws-must/fileprovider.rb
Overview
allow Docu class to access files
Instance Method Summary collapse
-
#get_template(file_name) ⇒ Object
return lines in a file as a long string.
-
#initialize(optionss = nil) ⇒ FileProvider
constructor
A new instance of FileProvider.
Constructor Details
#initialize(optionss = nil) ⇒ FileProvider
Returns a new instance of FileProvider.
5 6 |
# File 'lib/aws-must/fileprovider.rb', line 5 def initialize( =nil ) end |
Instance Method Details
#get_template(file_name) ⇒ Object
return lines in a file as a long string
8 9 10 |
# File 'lib/aws-must/fileprovider.rb', line 8 def get_template( file_name ) return File.readlines( file_name ).join end |