Class: Nova::Loader::TXT
- Inherits:
-
Nova::Loader
- Object
- Nova::Loader
- Nova::Loader::TXT
- Defined in:
- lib/cocoanova/loaders/txt.rb
Constant Summary
Constants inherited from Nova::Loader
Instance Method Summary collapse
Methods inherited from Nova::Loader
[], extension, phony, require_all, supported_extensions
Instance Method Details
#load(content) ⇒ Object
4 5 6 7 8 |
# File 'lib/cocoanova/loaders/txt.rb', line 4 def load(content) content.split("\n").delete_if do |val| val == nil || val == "" end end |