Class: DevSuite::Utils::FileLoader::Loader::Text

Inherits:
Base show all
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

component_key

Class Method Details

.extensionsObject



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