Class: DevSuite::Utils::FileLoader::Loader::Text
- Inherits:
-
Base
- Object
- Construct::Component::Base
- Base
- DevSuite::Utils::FileLoader::Loader::Text
- Defined in:
- lib/dev_suite/utils/file_loader/loader/text.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Construct::Component::Base
Class Method Details
.extensions ⇒ Object
9 10 11 |
# File 'lib/dev_suite/utils/file_loader/loader/text.rb', line 9 def extensions ["txt"] end |
Instance Method Details
#load(path) ⇒ Object
14 15 16 |
# File 'lib/dev_suite/utils/file_loader/loader/text.rb', line 14 def load(path) ::File.read(path) end |