Class: Nova::Loader::TXT

Inherits:
Nova::Loader show all
Defined in:
lib/cocoanova/loaders/txt.rb

Constant Summary

Constants inherited from Nova::Loader

Phony, Registry

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