Method: Aspen::List.from_text

Defined in:
lib/aspen/list.rb

.from_text(text) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/aspen/list.rb', line 10

def self.from_text(text)
  new text.
        gsub(REGEX, ', ').
        split(',').
        map(&:strip)

end