Sha256: c357ced5dc9f2df81c46aa8c00989aea88c80528b62ea9126426a1f632eed07e
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module Things class List DEFAULTS = [:inbox, :today, :next, :scheduled, :someday, :projects, :logbook, :trash] class << self def all Things::App.instance.lists end DEFAULTS.each do |list| class_eval <<-"eval" def #{list} all['#{list.to_s.capitalize}'] end eval end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
things-client-0.1.0 | lib/things/list.rb |