class Aspen::List
Constants
- REGEX
Public Class Methods
from_text(text)
click to toggle source
# File lib/aspen/list.rb, line 10 def self.from_text(text) new text. gsub(REGEX, ', '). split(','). map(&:strip) end
new(array = [])
click to toggle source
# File lib/aspen/list.rb, line 6 def initialize(array = []) @elements = Array(array) end