Class: RDialogy::Checklist

Inherits:
Base
  • Object
show all
Defined in:
lib/rdialogy/checklist.rb

Class Method Summary collapse

Class Method Details

.run(options = {}) ⇒ Object



23
24
25
26
27
28
# File 'lib/rdialogy/checklist.rb', line 23

def self.run(options={})
  super options, true do |input|
    items = input.split(' ')
    items.map{|e| e.scan(/^"(.*)"$/).flatten.first }
  end
end